Spaces:
Build error
Build error
GovindMalhotra commited on
Commit ·
cce1cb0
1
Parent(s): 4716b4e
Gradio fix - trial
Browse filesDeleted one blank jupyter notebook and experimenting with gradio fix found on HF forums
- app.py +2 -2
- untitiled.ipynb +0 -0
app.py
CHANGED
|
@@ -31,8 +31,8 @@ def classify(img):
|
|
| 31 |
pred,idx,probs = learn.predict(im)
|
| 32 |
return dict(zip(categories, map(float,probs)))
|
| 33 |
|
| 34 |
-
image = gr.
|
| 35 |
-
label = gr.
|
| 36 |
examples = ['lion_f.png', 'lion_r.png', 'potato_f.jpg']
|
| 37 |
|
| 38 |
intf = gr.interface(fn=classify_image, inputs=image, output = label, examples = examples)
|
|
|
|
| 31 |
pred,idx,probs = learn.predict(im)
|
| 32 |
return dict(zip(categories, map(float,probs)))
|
| 33 |
|
| 34 |
+
image = gr.Image(shape=(192,192))
|
| 35 |
+
label = gr.Label()
|
| 36 |
examples = ['lion_f.png', 'lion_r.png', 'potato_f.jpg']
|
| 37 |
|
| 38 |
intf = gr.interface(fn=classify_image, inputs=image, output = label, examples = examples)
|
untitiled.ipynb
DELETED
|
File without changes
|