chansung commited on
Commit
058bbc5
β€’
1 Parent(s): e1047f6

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +1 -2
ui.py CHANGED
@@ -257,8 +257,7 @@ async def chat_stream(idx, local_data, user_prompt, chat_state, ctx_num_lconv=3)
257
 
258
  yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
259
  except Exception as e:
260
- gr.Warning(e)
261
- ppm.append_pong("Gemini refused to answer. This happens becase there were some safety issues in the answer.")
262
  yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
263
 
264
  def chat_reset(local_data, chat_state):
 
257
 
258
  yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
259
  except Exception as e:
260
+ ppm.replace_pong("Gemini refused to answer. This happens becase there were some safety issues in the answer.")
 
261
  yield "", ppm.build_uis(), str(ppm), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True)
262
 
263
  def chat_reset(local_data, chat_state):