KaiChen1998 commited on
Commit
b966990
Β·
verified Β·
1 Parent(s): d4e9aca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -267,7 +267,8 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
267
  if tts_format not in prompt and chat_format not in prompt:
268
  state.messages[-1][-1] = output + "β–Œ"
269
  else:
270
- state.messages[-1][-1] = "β–Œ"
 
271
  # state.messages[-1][-1] = "[😁 GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β–Œ"
272
  yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
273
  except Exception as e:
 
267
  if tts_format not in prompt and chat_format not in prompt:
268
  state.messages[-1][-1] = output + "β–Œ"
269
  else:
270
+ state.messages[-1][-1] = output + "β–Œ"
271
+ # state.messages[-1][-1] = "β–Œ"
272
  # state.messages[-1][-1] = "[😁 GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β–Œ"
273
  yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
274
  except Exception as e: