Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.TabbedInterface([tab1, tab2], title='Cauliflower and Beetroot Detection with ssd_resnet50_v1_fpn_640x640_coco17_tpu-8')
|
7 |
-
|
8 |
-
# Launch the interface
|
9 |
-
iface.launch(share=True)
|
10 |
-
|
11 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
12 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import matplotlib.pyplot as plt
|
3 |
+
import numpy as np
|
4 |
+
from PIL import Image
|
5 |
+
import tensorflow as tf
|
6 |
+
from object_detection.utils import label_map_util
|
7 |
+
from object_detection.utils import visualization_utils as viz_utils
|
8 |
+
from object_detection.utils import ops as utils_op
|
9 |
+
import gradio as gr
|
10 |
+
import os
|
11 |
+
import cv2
|
12 |
|
13 |
def greet(name):
|
14 |
return "Hello " + name + "!!"
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
17 |
iface.launch()
|