Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,14 @@ def get_screenshot(chat,height=5000,width=600,chatblock=[1],header=True,theme="l
|
|
| 18 |
# str representing output in 'value_20' Html component,
|
| 19 |
# List[Dict(image: filepath, caption: str | None)] representing output in 'value_24' Gallery component,
|
| 20 |
# filepath representing output in 'value_23' Image component,
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
print(result[2])
|
| 24 |
|
| 25 |
-
get_screenshot(chat=[('user','bot'),('user','bot')])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# str representing output in 'value_20' Html component,
|
| 19 |
# List[Dict(image: filepath, caption: str | None)] representing output in 'value_24' Gallery component,
|
| 20 |
# filepath representing output in 'value_23' Image component,
|
| 21 |
+
out = f'https://omnibus-html-image-current-tab.hf.space/file={result[0]}'
|
| 22 |
+
print(out)
|
| 23 |
+
return out
|
| 24 |
|
|
|
|
| 25 |
|
| 26 |
+
get_screenshot(chat=[('user','bot'),('user','bot')])
|
| 27 |
+
with gr.Blocks() as app:
|
| 28 |
+
img=gr.Image()
|
| 29 |
+
chat=[('user','bot'),('user','bot')]
|
| 30 |
+
app.load(get_screenshot,chat,img)
|
| 31 |
+
app.launch()
|