Adityadn commited on
Commit
3ca2499
·
verified ·
1 Parent(s): 235316b

Update webui.py

Browse files
Files changed (1) hide show
  1. webui.py +14 -1
webui.py CHANGED
@@ -202,4 +202,17 @@ with describe:
202
 
203
  desc_btn.click(interrogatorFunction, inputs=[input_image, content_type], outputs=[outputs])
204
 
205
- describe.launch(show_api=False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
 
203
  desc_btn.click(interrogatorFunction, inputs=[input_image, content_type], outputs=[outputs])
204
 
205
+ uiLaunch = gr.Interface(
206
+ fn=interrogatorFunction,
207
+ inputs=[
208
+ grh.Image(label='Input', source='upload', type='numpy'),
209
+ content_type = gr.Radio(
210
+ label='Content Type',
211
+ choices=[flags.desc_type_photo, flags.desc_type_anime],
212
+ value=flags.desc_type_photo
213
+ )
214
+ ],
215
+ outputs=text
216
+ )
217
+
218
+ uiLaunch.launch(show_api=False)