daniloedu commited on
Commit
9a5e8aa
Β·
1 Parent(s): 9a6eb7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def respond(message, chat_history, instruction, temperature=0.7):
50
  yield "", chat_history
51
  acc_text = ""
52
 
53
- iface = gr.Interface(fn=respond, inputs=[gr.Textbox(label="Prompt"), gr.Chatbox(label="Chat History", height=240), gr.Textbox(label="System message", lines=2, value="A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers."), gr.Slider(label="temperature", minimum=0.1, maximum=1, value=0.7, step=0.1)], outputs=[gr.Textbox(label="Prompt"), gr.Chatbox(label="Chat History", height=240)])
54
 
55
  if __name__ == "__main__":
56
  iface.launch()
 
50
  yield "", chat_history
51
  acc_text = ""
52
 
53
+ iface = gr.Interface(fn=respond, inputs=[gr.Textbox(label="Prompt"), gr.Chatbot(label="Chat History", height=240), gr.Textbox(label="System message", lines=2, value="A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers."), gr.Slider(label="temperature", minimum=0.1, maximum=1, value=0.7, step=0.1)], outputs=[gr.Textbox(label="Prompt"), gr.Chatbot(label="Chat History", height=240)])
54
 
55
  if __name__ == "__main__":
56
  iface.launch()