Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,6 @@ def stream_gemini_response(user_message: str, messages: list) -> Iterator[list]:
|
|
70 |
metadata={"title": "⚙️ Thinking: *The thoughts produced by the model are experimental"}
|
71 |
)
|
72 |
yield messages
|
73 |
-
time.sleep(0.05)
|
74 |
|
75 |
# Start response
|
76 |
response_buffer = parts[1].text
|
@@ -106,8 +105,7 @@ def stream_gemini_response(user_message: str, messages: list) -> Iterator[list]:
|
|
106 |
)
|
107 |
|
108 |
yield messages
|
109 |
-
|
110 |
-
|
111 |
print(f"\n=== Final Response ===\n{response_buffer}")
|
112 |
|
113 |
except Exception as e:
|
|
|
70 |
metadata={"title": "⚙️ Thinking: *The thoughts produced by the model are experimental"}
|
71 |
)
|
72 |
yield messages
|
|
|
73 |
|
74 |
# Start response
|
75 |
response_buffer = parts[1].text
|
|
|
105 |
)
|
106 |
|
107 |
yield messages
|
108 |
+
|
|
|
109 |
print(f"\n=== Final Response ===\n{response_buffer}")
|
110 |
|
111 |
except Exception as e:
|