nehulagrawal commited on
Commit
ada8c0d
·
1 Parent(s): f940e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -52,13 +52,18 @@ inputs = [
52
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
53
  title = "Ui form : web form ui field Detection in Images"
54
 
55
- demo_app = gr.Interface(
56
- fn=yolov8_inference,
57
- inputs=inputs,
58
- outputs=outputs,
59
- title=title,
 
60
  examples=image_path,
61
  cache_examples=False,
62
- theme='huggingface',
63
  )
64
- demo_app.launch(debug=True, enable_queue=True)
 
 
 
 
 
52
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
53
  title = "Ui form : web form ui field Detection in Images"
54
 
55
+ interface_image = gr.Interface(
56
+ fn=yolov8_img_inference,
57
+ inputs=inputs_image,
58
+ outputs=outputs_image,
59
+ title=model_heading,
60
+ description=description,
61
  examples=image_path,
62
  cache_examples=False,
63
+ theme='huggingface'
64
  )
65
+
66
+ gr.TabbedInterface(
67
+ [interface_image],
68
+ tab_names=['Image inference']
69
+ ).queue().launch()