Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,9 +30,8 @@ def translate(output, text):
|
|
| 30 |
},
|
| 31 |
}
|
| 32 |
response = requests.request("POST", API_URL, json=json_)
|
| 33 |
-
output = response.json()[0]['generated_text']
|
| 34 |
|
| 35 |
-
return
|
| 36 |
|
| 37 |
demo = gr.Blocks()
|
| 38 |
|
|
|
|
| 30 |
},
|
| 31 |
}
|
| 32 |
response = requests.request("POST", API_URL, json=json_)
|
|
|
|
| 33 |
|
| 34 |
+
return response.json()
|
| 35 |
|
| 36 |
demo = gr.Blocks()
|
| 37 |
|