ahmed792002 commited on
Commit
c8f611e
·
verified ·
1 Parent(s): 4559878

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,8 +28,9 @@ def chatbot(query, history, system_message, max_length, temperature, top_k, top_
28
  )
29
  # Decode generated text
30
  response = tokenizer.decode(final_outputs[0], skip_special_tokens=True)
 
31
 
32
- return response.split('"')[1]
33
 
34
  # Gradio ChatInterface
35
  demo = gr.ChatInterface(
 
28
  )
29
  # Decode generated text
30
  response = tokenizer.decode(final_outputs[0], skip_special_tokens=True)
31
+ response = response.split('"')[1]
32
 
33
+ return response
34
 
35
  # Gradio ChatInterface
36
  demo = gr.ChatInterface(