Omnibus commited on
Commit
18b083a
·
verified ·
1 Parent(s): 7907ceb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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
9
+ # float in 'Width' Number component
10
+ # List[Literal['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20']] in 'Chatblocks' Checkboxgroup component
11
+ # bool in 'Show Header' Checkbox component
12
+ # Literal['light', 'dark'] in 'Theme' Radio component
13
+ # float (numeric value between 1 and 10000) in 'Wait time' Slider component
14
+ # api_name="/run_script"
15
+ print(result)