desert commited on
Commit
b97d649
1 Parent(s): eb2e235

init inference

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -63,4 +63,18 @@ with gr.Blocks() as demo:
63
  with gr.Row():
64
  with gr.Column(scale=4):
65
  user_input = gr.Textbox(label="Your Message", placeholder="Type a message...")
66
- with gr.Column(scale=
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  with gr.Row():
64
  with gr.Column(scale=4):
65
  user_input = gr.Textbox(label="Your Message", placeholder="Type a message...")
66
+ with gr.Column(scale=1):
67
+ submit_btn = gr.Button("Send")
68
+
69
+ chat_history = gr.State([])
70
+
71
+ # Link components
72
+ submit_btn.click(
73
+ chatbot_fn,
74
+ inputs=[user_input, chat_history],
75
+ outputs=[chatbot, chat_history],
76
+ show_progress=True,
77
+ )
78
+
79
+ # Launch the Gradio app
80
+ demo.launch()