Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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],
|
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)
|