Samarth991 commited on
Commit
f35ed31
1 Parent(s): 04cd75a

adding open llama

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -184,9 +184,8 @@ with gr.Blocks(css=css) as demo:
184
  if audio_file:
185
  load_audio.click(loading_file, None, langchain_status, queue=False)
186
  load_audio.click(audio_processor, inputs=[audio_file,API_key,wav_model,LLM_option,temperature,max_new_tokens], outputs=[langchain_status], queue=False)
187
-
188
- clean_chat_btn.click(clear_chat, [], chatbot)
189
- question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
190
- submit_btn.click(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
191
 
192
  demo.launch()
 
184
  if audio_file:
185
  load_audio.click(loading_file, None, langchain_status, queue=False)
186
  load_audio.click(audio_processor, inputs=[audio_file,API_key,wav_model,LLM_option,temperature,max_new_tokens], outputs=[langchain_status], queue=False)
187
+ clean_chat_btn.click(clear_chat, [], chatbot)
188
+ question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
189
+ submit_btn.click(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
 
190
 
191
  demo.launch()