zachwormgoor@gmail.com
commited on
Commit
•
0728d62
1
Parent(s):
f16cc96
2nd try
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ examples = ['stock.jpg', 'stock2.jpg', 'stock-easy.jpg', 'stock-easy2.jpg', 'com
|
|
71 |
|
72 |
|
73 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
74 |
-
intf.launch(inline=False)
|
75 |
|
76 |
|
77 |
|
@@ -94,7 +94,10 @@ def classify_image_url(url_text):
|
|
94 |
return { (categories[0], 0.0), (categories[1], 0.0) }
|
95 |
|
96 |
intf_text_url = gr.Interface(fn=classify_image_url, inputs="text", outputs=label, examples=examples)
|
97 |
-
intf_text_url.launch(inline=False)
|
|
|
|
|
|
|
98 |
|
99 |
|
100 |
|
|
|
71 |
|
72 |
|
73 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
74 |
+
# intf.launch(inline=False)
|
75 |
|
76 |
|
77 |
|
|
|
94 |
return { (categories[0], 0.0), (categories[1], 0.0) }
|
95 |
|
96 |
intf_text_url = gr.Interface(fn=classify_image_url, inputs="text", outputs=label, examples=examples)
|
97 |
+
# intf_text_url.launch(inline=False)
|
98 |
+
|
99 |
+
# https://github.com/gradio-app/gradio/issues/450
|
100 |
+
gr.TabbedInterface( [intf, intf_text_url], ["Image file upload", "Image URL" ] ).launch()
|
101 |
|
102 |
|
103 |
|