Omnibus commited on
Commit
7cccb39
·
verified ·
1 Parent(s): d1b3dae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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')])