Spaces:
Runtime error
Runtime error
Update webui.py
Browse files
webui.py
CHANGED
@@ -202,4 +202,17 @@ with describe:
|
|
202 |
|
203 |
desc_btn.click(interrogatorFunction, inputs=[input_image, content_type], outputs=[outputs])
|
204 |
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|