Spaces:
Runtime error
Runtime error
Commit
·
baa7023
1
Parent(s):
acaa3ab
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,9 +111,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 111 |
).style(container=False)
|
| 112 |
with gr.Column(min_width=70, scale=1):
|
| 113 |
submitBtn = gr.Button("Send")
|
| 114 |
-
with gr.Column(min_width=70, scale=1):
|
| 115 |
-
cancelBtn = gr.Button("Stop")
|
| 116 |
-
|
| 117 |
|
| 118 |
with gr.Row(scale=1):
|
| 119 |
emptyBtn = gr.Button(
|
|
@@ -216,12 +213,12 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 216 |
[chatbot, history, status_display],
|
| 217 |
show_progress=True,
|
| 218 |
)
|
| 219 |
-
cancelBtn.click(
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
)
|
| 225 |
demo.title = "Baize"
|
| 226 |
|
| 227 |
demo.queue(concurrency_count=1,).launch()
|
|
|
|
| 111 |
).style(container=False)
|
| 112 |
with gr.Column(min_width=70, scale=1):
|
| 113 |
submitBtn = gr.Button("Send")
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
with gr.Row(scale=1):
|
| 116 |
emptyBtn = gr.Button(
|
|
|
|
| 213 |
[chatbot, history, status_display],
|
| 214 |
show_progress=True,
|
| 215 |
)
|
| 216 |
+
#cancelBtn.click(
|
| 217 |
+
# cancel_outputing, [], [status_display],
|
| 218 |
+
# cancels=[
|
| 219 |
+
# predict_event1,predict_event2,predict_event3
|
| 220 |
+
# ]
|
| 221 |
+
#)
|
| 222 |
demo.title = "Baize"
|
| 223 |
|
| 224 |
demo.queue(concurrency_count=1,).launch()
|