Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ class GeminiModel:
|
|
54 |
# Return a dictionary that CodeAgent expects
|
55 |
return {"content": response.candidates[0].content.parts[0].text.strip()}
|
56 |
except Exception as e:
|
57 |
-
return {"content": f"Error during Gemini call: {str(e)}"}
|
58 |
|
59 |
# Define BasicAgent properly
|
60 |
class BasicAgent:
|
|
|
54 |
# Return a dictionary that CodeAgent expects
|
55 |
return {"content": response.candidates[0].content.parts[0].text.strip()}
|
56 |
except Exception as e:
|
57 |
+
return {"content": f"Error during Gemini call: {str(e)}"}
|
58 |
|
59 |
# Define BasicAgent properly
|
60 |
class BasicAgent:
|