KaiChen1998 commited on
Commit
b3610eb
Β·
verified Β·
1 Parent(s): 19605cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -290,6 +290,7 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
290
  # state.messages[-1][-1] = "[😁 GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β–Œ"
291
  yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
292
  except Exception as e:
 
293
  state.messages[-1][-1] = server_error_msg
294
  yield (state, state.to_gradio_chatbot_public()) + (enable_btn,) * 2
295
  return
 
290
  # state.messages[-1][-1] = "[😁 GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β–Œ"
291
  yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
292
  except Exception as e:
293
+ print(e)
294
  state.messages[-1][-1] = server_error_msg
295
  yield (state, state.to_gradio_chatbot_public()) + (enable_btn,) * 2
296
  return