Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ class MyAgent:
|
|
49 |
text = ''
|
50 |
elif isinstance(response, str):
|
51 |
text = response
|
52 |
-
|
53 |
-
|
54 |
|
55 |
return extract_final_answer(text)
|
56 |
except Exception as e:
|
|
|
49 |
text = ''
|
50 |
elif isinstance(response, str):
|
51 |
text = response
|
52 |
+
else:
|
53 |
+
text = str(response) # fallback
|
54 |
|
55 |
return extract_final_answer(text)
|
56 |
except Exception as e:
|