Spaces:
Sleeping
Sleeping
init
Browse files
app.py
CHANGED
|
@@ -94,15 +94,15 @@ html_content = """
|
|
| 94 |
|
| 95 |
with gr.Blocks() as demo:
|
| 96 |
with gr.Row():
|
| 97 |
-
# Left column with chatbot
|
| 98 |
with gr.Column(scale=2):
|
| 99 |
gr.HTML(html_content)
|
| 100 |
-
chatbot = gr.Chatbot()
|
| 101 |
user_input = gr.Textbox(placeholder="Enter your message here...")
|
| 102 |
-
chat_history = gr.State([])
|
|
|
|
| 103 |
submit_btn = gr.Button("Submit")
|
| 104 |
submit_btn.click(gradio_chat, inputs=[user_input, chat_history], outputs=[chatbot, chat_history])
|
| 105 |
-
gr.Dataframe(value=data)
|
| 106 |
|
| 107 |
-
#
|
|
|
|
| 108 |
demo.launch()
|
|
|
|
| 94 |
|
| 95 |
with gr.Blocks() as demo:
|
| 96 |
with gr.Row():
|
|
|
|
| 97 |
with gr.Column(scale=2):
|
| 98 |
gr.HTML(html_content)
|
| 99 |
+
chatbot = gr.Chatbot() # Chatbot output
|
| 100 |
user_input = gr.Textbox(placeholder="Enter your message here...")
|
| 101 |
+
chat_history = gr.State([]) # Initialize State for chat history
|
| 102 |
+
|
| 103 |
submit_btn = gr.Button("Submit")
|
| 104 |
submit_btn.click(gradio_chat, inputs=[user_input, chat_history], outputs=[chatbot, chat_history])
|
|
|
|
| 105 |
|
| 106 |
+
gr.Dataframe(value=data) # Display the dataset
|
| 107 |
+
|
| 108 |
demo.launch()
|