Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,15 @@ client = InferenceClient(
|
|
28 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
29 |
)
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
def parse_action(string: str):
|
32 |
print("PARSING:")
|
33 |
print(string)
|
@@ -366,14 +375,17 @@ examples =[
|
|
366 |
"Teach me to fly a helicopter"
|
367 |
]
|
368 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
|
370 |
-
gr.ChatInterface(
|
371 |
-
fn=run,
|
372 |
-
chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, likeable=True, layout="panel", height="800px"),
|
373 |
-
title="Mixtral 46.7B Powered <br> Search",
|
374 |
-
examples=examples,
|
375 |
-
concurrency_limit=20,
|
376 |
-
).launch()
|
377 |
'''
|
378 |
with gr.Blocks() as app:
|
379 |
with gr.Row():
|
|
|
28 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
29 |
)
|
30 |
|
31 |
+
|
32 |
+
from gradio_client import Client
|
33 |
+
|
34 |
+
client = Client("https://omnibus-html-image-current-tab.hf.space/--replicas/o0seq/")
|
35 |
+
|
36 |
+
def get_screenshot(chat,height=5000,width=600,chatblock=[1],header=True,theme="light",wait=3000)
|
37 |
+
result = client.predict(chat,height,width,chatblock,header,theme,wait,api_name="/run_script")
|
38 |
+
print (result)
|
39 |
+
|
40 |
def parse_action(string: str):
|
41 |
print("PARSING:")
|
42 |
print(string)
|
|
|
375 |
"Teach me to fly a helicopter"
|
376 |
]
|
377 |
|
378 |
+
with gr.Blocks() as app:
|
379 |
+
gr.ChatInterface(
|
380 |
+
fn=run,
|
381 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=True, show_copy_button=True, likeable=True, layout="panel", height="800px"),
|
382 |
+
title="Mixtral 46.7B Powered <br> Search",
|
383 |
+
examples=examples,
|
384 |
+
concurrency_limit=20,
|
385 |
+
)
|
386 |
+
btn=gr.Button()
|
387 |
+
app.launch()
|
388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
'''
|
390 |
with gr.Blocks() as app:
|
391 |
with gr.Row():
|