Update app.py
This commit is contained in:
parent
a9302e30ad
commit
16e8683ec1
17
app.py
17
app.py
|
@ -119,7 +119,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
||||||
).style(container=False)
|
).style(container=False)
|
||||||
with gr.Column(min_width=70, scale=1):
|
with gr.Column(min_width=70, scale=1):
|
||||||
submitBtn = gr.Button("Send")
|
submitBtn = gr.Button("Send")
|
||||||
|
with gr.Column(min_width=70, scale=1):
|
||||||
|
cancelBtn = gr.Button("Stop")
|
||||||
with gr.Row(scale=1):
|
with gr.Row(scale=1):
|
||||||
emptyBtn = gr.Button(
|
emptyBtn = gr.Button(
|
||||||
"🧹 New Conversation",
|
"🧹 New Conversation",
|
||||||
|
@ -156,7 +157,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
||||||
)
|
)
|
||||||
max_context_length_tokens = gr.Slider(
|
max_context_length_tokens = gr.Slider(
|
||||||
minimum=0,
|
minimum=0,
|
||||||
maximum=2048,
|
maximum=4096,
|
||||||
value=2048,
|
value=2048,
|
||||||
step=128,
|
step=128,
|
||||||
interactive=True,
|
interactive=True,
|
||||||
|
@ -221,12 +222,12 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
||||||
[chatbot, history, status_display],
|
[chatbot, history, status_display],
|
||||||
show_progress=True,
|
show_progress=True,
|
||||||
)
|
)
|
||||||
#cancelBtn.click(
|
cancelBtn.click(
|
||||||
# cancel_outputing, [], [status_display],
|
cancel_outputing, [], [status_display],
|
||||||
# cancels=[
|
cancels=[
|
||||||
# predict_event1,predict_event2,predict_event3
|
predict_event1,predict_event2,predict_event3
|
||||||
# ]
|
]
|
||||||
#)
|
)
|
||||||
demo.title = "Baize"
|
demo.title = "Baize"
|
||||||
|
|
||||||
demo.queue(concurrency_count=1).launch()
|
demo.queue(concurrency_count=1).launch()
|
Loading…
Reference in New Issue