edited gr.Image() inputs
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def classify_image(img):
|
|
| 25 |
# dog = '/Users/izd/Library/Mobile Documents/com~apple~CloudDocs/Documents/fastai_course/minimal/doggy.jpg'
|
| 26 |
# cat = '/Users/izd/Library/Mobile Documents/com~apple~CloudDocs/Documents/fastai_course/minimal/gato.jpg'
|
| 27 |
|
| 28 |
-
image = gr.Image(height=192, width=192)
|
| 29 |
label = gr.Label()
|
| 30 |
examples = ['/app/doggy.jpg','/app/gatto.jpg']
|
| 31 |
|
|
|
|
| 25 |
# dog = '/Users/izd/Library/Mobile Documents/com~apple~CloudDocs/Documents/fastai_course/minimal/doggy.jpg'
|
| 26 |
# cat = '/Users/izd/Library/Mobile Documents/com~apple~CloudDocs/Documents/fastai_course/minimal/gato.jpg'
|
| 27 |
|
| 28 |
+
image = gr.Image(height=192, width=192, type="filepath")
|
| 29 |
label = gr.Label()
|
| 30 |
examples = ['/app/doggy.jpg','/app/gatto.jpg']
|
| 31 |
|