Spaces:
Runtime error
Runtime error
Update ui.py
Browse files
ui.py
CHANGED
|
@@ -264,7 +264,8 @@ async def chat_stream(idx, local_data, user_prompt, chat_state, ctx_num_lconv=3)
|
|
| 264 |
|
| 265 |
yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
|
| 266 |
except Exception as e:
|
| 267 |
-
|
|
|
|
| 268 |
yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
|
| 269 |
|
| 270 |
def chat_reset(local_data, chat_state):
|
|
|
|
| 264 |
|
| 265 |
yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
|
| 266 |
except Exception as e:
|
| 267 |
+
print(str(e))
|
| 268 |
+
gr.Warning("Gemini refused to answer further. This happens because there were some safety issues in the answer.")
|
| 269 |
yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
|
| 270 |
|
| 271 |
def chat_reset(local_data, chat_state):
|