Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def respond(
|
|
| 89 |
|
| 90 |
try:
|
| 91 |
output = json.loads(rawresponse)
|
| 92 |
-
if isinstance(output, list) and
|
| 93 |
response = output[0]["generatedtext"]
|
| 94 |
else:
|
| 95 |
response = f"μμμΉ λͺ»ν μλ΅ νμμ
λλ€: {output}"
|
|
|
|
| 89 |
|
| 90 |
try:
|
| 91 |
output = json.loads(rawresponse)
|
| 92 |
+
if isinstance(output, list) and output and "generatedtext" in output[0]:
|
| 93 |
response = output[0]["generatedtext"]
|
| 94 |
else:
|
| 95 |
response = f"μμμΉ λͺ»ν μλ΅ νμμ
λλ€: {output}"
|