arshiaafshani commited on
Commit
c389077
·
verified ·
1 Parent(s): 64f5b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def respond(message, chat_history, system_message, max_tokens, temperature, top_
36
  # Update chat history
37
  chat_history.append((message, response))
38
 
39
- return "", chat_history
40
 
41
  with gr.Blocks() as demo:
42
  gr.Markdown("# Arsh-LLM Demo")
@@ -55,8 +55,8 @@ with gr.Blocks() as demo:
55
  msg = gr.Textbox(label="Your Message")
56
  clear = gr.Button("Clear")
57
 
58
- msg.submit(respond, [msg, chatbot, system_msg, max_tokens, temperature, top_p, top_k, repeat_penalty], [msg, chatbot])
59
  clear.click(lambda: None, None, chatbot, queue=False)
60
 
61
  if __name__ == "__main__":
62
- demo.launch()
 
36
  # Update chat history
37
  chat_history.append((message, response))
38
 
39
+ return chat_history
40
 
41
  with gr.Blocks() as demo:
42
  gr.Markdown("# Arsh-LLM Demo")
 
55
  msg = gr.Textbox(label="Your Message")
56
  clear = gr.Button("Clear")
57
 
58
+ msg.submit(respond, [msg, chatbot, system_msg, max_tokens, temperature, top_p, top_k, repeat_penalty], chatbot)
59
  clear.click(lambda: None, None, chatbot, queue=False)
60
 
61
  if __name__ == "__main__":
62
+ demo.launch(server_name="0.0.0.0", server_port=7860)