rayl-aoit commited on
Commit
33ccd4a
·
verified ·
1 Parent(s): 19f514f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ ner_pipe = pipeline("ner", model="dslim/bert-base-NER")
21
  # audio = IPythonAudio(audio_data, rate=sampling_rate)
22
  # return audio_data, sampling_rate
23
 
24
- def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p):
25
  messages = [{"role": "system", "content": system_message}]
26
 
27
  for val in history:
@@ -193,7 +193,7 @@ with playground:
193
  ner_pipeline_button.click(ner, inputs=[ner_text_input], outputs=[ner_text_output])
194
 
195
  ## ================================================================================================================================
196
- ## Find entities
197
  ## ================================================================================================================================
198
  with gr.TabItem("Chatbot"):
199
  gr.ChatInterface(
 
21
  # audio = IPythonAudio(audio_data, rate=sampling_rate)
22
  # return audio_data, sampling_rate
23
 
24
+ def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p,):
25
  messages = [{"role": "system", "content": system_message}]
26
 
27
  for val in history:
 
193
  ner_pipeline_button.click(ner, inputs=[ner_text_input], outputs=[ner_text_output])
194
 
195
  ## ================================================================================================================================
196
+ ## Chatbot
197
  ## ================================================================================================================================
198
  with gr.TabItem("Chatbot"):
199
  gr.ChatInterface(