Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from gradio_client import Client
|
|
| 2 |
|
| 3 |
client = Client("https://omnibus-html-image-current-tab.hf.space/--replicas/o0seq/")
|
| 4 |
|
| 5 |
-
def get_screenshot(chat,height=5000,width=600,chatblock=[1],header=True,theme="light",wait=3000)
|
| 6 |
result = client.predict(chat,height,width,chatblock,header,theme,wait,api_name="/run_script")
|
| 7 |
# str in 'Chat: [('user','bot'),('user','bot')]' Textbox component
|
| 8 |
# float in 'Height' Number component
|
|
@@ -20,4 +20,6 @@ def get_screenshot(chat,height=5000,width=600,chatblock=[1],header=True,theme="l
|
|
| 20 |
# filepath representing output in 'value_23' Image component,
|
| 21 |
|
| 22 |
|
| 23 |
-
print(result)
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
client = Client("https://omnibus-html-image-current-tab.hf.space/--replicas/o0seq/")
|
| 4 |
|
| 5 |
+
def get_screenshot(chat,height=5000,width=600,chatblock=[1],header=True,theme="light",wait=3000):
|
| 6 |
result = client.predict(chat,height,width,chatblock,header,theme,wait,api_name="/run_script")
|
| 7 |
# str in 'Chat: [('user','bot'),('user','bot')]' Textbox component
|
| 8 |
# float in 'Height' Number component
|
|
|
|
| 20 |
# filepath representing output in 'value_23' Image component,
|
| 21 |
|
| 22 |
|
| 23 |
+
print(result)
|
| 24 |
+
|
| 25 |
+
get_screenshot(chat=[('user','bot'),('user','bot')])
|