Spaces:
Running
Running
Commit ·
b16e60c
1
Parent(s): fe982d6
text
Browse files
app.py
CHANGED
|
@@ -73,15 +73,15 @@ with gr.Blocks(css="footer {visibility: hidden}", title="chatWEBPAGE") as demo:
|
|
| 73 |
|
| 74 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
|
| 86 |
if __name__ == "__main__":
|
| 87 |
demo.launch()
|
|
|
|
| 73 |
|
| 74 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
| 75 |
|
| 76 |
+
with gr.Row():
|
| 77 |
+
with gr.Column(scale=2):
|
| 78 |
+
clear_button = gr.Button("Clear")
|
| 79 |
+
clear_button.click(lambda: None, None, chatbot, queue=False)
|
| 80 |
+
with gr.Column(scale=4):
|
| 81 |
+
submit_button = gr.Button("Submit")
|
| 82 |
+
submit_button.click(user, [msg, chatbot], [msg, chatbot], queue=False).success(
|
| 83 |
+
bot, chatbot, chatbot
|
| 84 |
+
)
|
| 85 |
|
| 86 |
if __name__ == "__main__":
|
| 87 |
demo.launch()
|