Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
14c4795
1
Parent(s):
c9f40d2
Update app.py
Browse files
app.py
CHANGED
@@ -1,22 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
-
import os
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
demo = gr.Interface(
|
11 |
-
image_mod,
|
12 |
-
gr.Image(type="pil"),
|
13 |
-
"image",
|
14 |
-
flagging_options=["blurry", "incorrect", "other"],
|
15 |
-
examples=[
|
16 |
-
os.path.join(os.path.dirname(__file__), "n146OugAwBUjFACpuWrZUE6Q0-M.jpg"),
|
17 |
-
|
18 |
-
],
|
19 |
-
)
|
20 |
-
|
21 |
-
if __name__ == "__main__":
|
22 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
+
gr.Interface(fn=classify_image,
|
4 |
+
inputs=gr.Image(shape=(224, 224)),
|
5 |
+
outputs=gr.Label(num_top_classes=3),
|
6 |
+
examples=["n146OugAwBUjFACpuWrZUE6Q0-M.jpg"]).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|