vortex123 commited on
Commit
d9cbde6
·
verified ·
1 Parent(s): 1916db7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -17,6 +17,9 @@ When given a problem to solve, you are an expert problem-solving assistant.
17
  Your task is to provide a detailed, step-by-step solution to a given question.
18
  """
19
 
 
 
 
20
  with gr.Blocks() as demo:
21
  gr.Markdown("# Custom Chat Interface")
22
 
@@ -27,11 +30,7 @@ with gr.Blocks() as demo:
27
  chatbot = gr.Chatbot(label="Chat")
28
  msg = gr.Textbox(label="Type your message here...", placeholder="Enter your message...")
29
 
30
- def clear_chat():
31
- return [], ""
32
-
33
- gr.Button("Clear Chat").click(clear_chat, inputs=None, outputs=[chatbot, msg])
34
-
35
  msg.submit(generate, inputs=[msg, chatbot, model, system_prompt], outputs=[chatbot, msg])
 
36
 
37
- demo.launch()
 
17
  Your task is to provide a detailed, step-by-step solution to a given question.
18
  """
19
 
20
+ def clear_chat():
21
+ return [], ""
22
+
23
  with gr.Blocks() as demo:
24
  gr.Markdown("# Custom Chat Interface")
25
 
 
30
  chatbot = gr.Chatbot(label="Chat")
31
  msg = gr.Textbox(label="Type your message here...", placeholder="Enter your message...")
32
 
 
 
 
 
 
33
  msg.submit(generate, inputs=[msg, chatbot, model, system_prompt], outputs=[chatbot, msg])
34
+ gr.Button("Clear Chat").click(clear_chat, inputs=None, outputs=[chatbot, msg])
35
 
36
+ demo.launch()