Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def chat(prompt):
|
|
14 |
|
15 |
try:
|
16 |
response = text_model.generate_content(prompt, stream=True)
|
17 |
-
return to_markdown(
|
18 |
|
19 |
except Exception as e:
|
20 |
print(f"Error during generation: {e}")
|
|
|
14 |
|
15 |
try:
|
16 |
response = text_model.generate_content(prompt, stream=True)
|
17 |
+
return to_markdown(response.text)
|
18 |
|
19 |
except Exception as e:
|
20 |
print(f"Error during generation: {e}")
|