Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -385,19 +385,19 @@ examples =[
|
|
385 |
"Find the best deals on flippers for scuba diving",
|
386 |
"Teach me to fly a helicopter"
|
387 |
]
|
388 |
-
with gr.Blocks() as app
|
389 |
-
gr.ChatInterface(
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
)
|
396 |
-
|
397 |
-
text_input=gr.Textbox()
|
398 |
-
html_game=gr.Textbox()
|
399 |
-
url_params = gr.JSON({}, visible=True, label="")
|
400 |
-
app.load(predict,[text_input,url_params],[text_input,html_game], js=get_window_url_params)
|
401 |
|
402 |
|
403 |
app.launch()
|
|
|
385 |
"Find the best deals on flippers for scuba diving",
|
386 |
"Teach me to fly a helicopter"
|
387 |
]
|
388 |
+
with gr.Blocks() as app:
|
389 |
+
gr.ChatInterface(
|
390 |
+
fn=run,
|
391 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, layout="panel", height="500px"),
|
392 |
+
title="<center>Mixtral 46.7B Powered <br>Financial Demo<br>This demo is not a Financial Advisor</center>",
|
393 |
+
examples=examples,
|
394 |
+
concurrency_limit=20,
|
395 |
+
)
|
396 |
+
|
397 |
+
text_input=gr.Textbox()
|
398 |
+
html_game=gr.Textbox()
|
399 |
+
url_params = gr.JSON({}, visible=True, label="")
|
400 |
+
app.load(predict,[text_input,url_params],[text_input,html_game], js=get_window_url_params)
|
401 |
|
402 |
|
403 |
app.launch()
|