Spaces:
Runtime error
Runtime error
Commit
·
88876d7
1
Parent(s):
f2984af
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def get_script(lang, instruction):
|
|
38 |
"wait_for_model": True,
|
39 |
}, }
|
40 |
response = requests.post(API_URL, headers=headers, json=jsn)
|
41 |
-
return response.json()["generated_text"]
|
42 |
|
43 |
|
44 |
demo = gr.Blocks()
|
|
|
38 |
"wait_for_model": True,
|
39 |
}, }
|
40 |
response = requests.post(API_URL, headers=headers, json=jsn)
|
41 |
+
return response.json()[0]["generated_text"]
|
42 |
|
43 |
|
44 |
demo = gr.Blocks()
|