Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,20 +389,20 @@ examples =[
|
|
| 389 |
]
|
| 390 |
with gr.Blocks() as app:
|
| 391 |
key_inp=gr.Textbox()
|
| 392 |
-
add_in=[key_inp]
|
| 393 |
gr.ChatInterface(
|
| 394 |
fn=run,
|
| 395 |
title="<center>Mixtral 46.7B Powered <br>Financial Demo<br>This demo is not a Financial Advisor</center>",
|
| 396 |
chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, layout="panel", height="500px"),
|
| 397 |
-
additional_inputs=add_in,
|
| 398 |
examples=examples,
|
| 399 |
concurrency_limit=20,
|
|
|
|
| 400 |
)
|
| 401 |
|
| 402 |
text_input=gr.Textbox()
|
| 403 |
html_game=gr.Textbox()
|
| 404 |
url_params = gr.JSON({}, visible=True, label="")
|
| 405 |
-
app.load(predict,[text_input,url_params],[text_input], js=get_window_url_params)
|
| 406 |
|
| 407 |
|
| 408 |
app.launch()
|
|
|
|
| 389 |
]
|
| 390 |
with gr.Blocks() as app:
|
| 391 |
key_inp=gr.Textbox()
|
| 392 |
+
add_in=[key_inp,]
|
| 393 |
gr.ChatInterface(
|
| 394 |
fn=run,
|
| 395 |
title="<center>Mixtral 46.7B Powered <br>Financial Demo<br>This demo is not a Financial Advisor</center>",
|
| 396 |
chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, layout="panel", height="500px"),
|
|
|
|
| 397 |
examples=examples,
|
| 398 |
concurrency_limit=20,
|
| 399 |
+
additional_inputs=add_in,
|
| 400 |
)
|
| 401 |
|
| 402 |
text_input=gr.Textbox()
|
| 403 |
html_game=gr.Textbox()
|
| 404 |
url_params = gr.JSON({}, visible=True, label="")
|
| 405 |
+
app.load(predict,[text_input,url_params],[text_input,key_inp], js=get_window_url_params)
|
| 406 |
|
| 407 |
|
| 408 |
app.launch()
|