Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def convert_and_optimize_code_with_gemini(python):
|
|
| 90 |
)
|
| 91 |
|
| 92 |
for chunk in stream:
|
| 93 |
-
stream_response = getattr(chunk, "text",
|
| 94 |
if stream_response:
|
| 95 |
yield stream_response
|
| 96 |
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
for chunk in stream:
|
| 93 |
+
stream_response = getattr(chunk, "text", "")
|
| 94 |
if stream_response:
|
| 95 |
yield stream_response
|
| 96 |
|