Spaces:
Runtime error
Runtime error
Commit ·
1e83fb4
1
Parent(s): bb032ca
adjusted launch function paramter
Browse files
app.py
CHANGED
|
@@ -5,8 +5,6 @@ def is_cat(x): return x[0].isupper()
|
|
| 5 |
|
| 6 |
learn = load_learner('model.pkl')
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
categories = ('Dog', 'Cat')
|
| 11 |
|
| 12 |
def classify_image(img):
|
|
@@ -17,4 +15,4 @@ image = gr.inputs.Image(shape=(192, 192))
|
|
| 17 |
label = gr.outputs.Label()
|
| 18 |
|
| 19 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
| 20 |
-
intf.launch()
|
|
|
|
| 5 |
|
| 6 |
learn = load_learner('model.pkl')
|
| 7 |
|
|
|
|
|
|
|
| 8 |
categories = ('Dog', 'Cat')
|
| 9 |
|
| 10 |
def classify_image(img):
|
|
|
|
| 15 |
label = gr.outputs.Label()
|
| 16 |
|
| 17 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
| 18 |
+
intf.launch(share=True)
|