Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,12 +54,12 @@ for i in range(5):
|
|
| 54 |
continue
|
| 55 |
sample_images.append(image_folders[i] + '/' + file)
|
| 56 |
|
| 57 |
-
|
| 58 |
inputs=image,
|
| 59 |
outputs=label,
|
| 60 |
title="AI 金門藍孔雀、歐亞水獺、戴勝鳥辨識機",
|
| 61 |
description=some_text,
|
| 62 |
-
examples=sample_images, live=True)
|
| 63 |
|
| 64 |
# def greet(name):
|
| 65 |
|
|
@@ -72,4 +72,4 @@ iface = gr.Interface(fn=classify_image,
|
|
| 72 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 73 |
|
| 74 |
# .launch(share=True)
|
| 75 |
-
iface.launch()
|
|
|
|
| 54 |
continue
|
| 55 |
sample_images.append(image_folders[i] + '/' + file)
|
| 56 |
|
| 57 |
+
gr.Interface(fn=classify_image,
|
| 58 |
inputs=image,
|
| 59 |
outputs=label,
|
| 60 |
title="AI 金門藍孔雀、歐亞水獺、戴勝鳥辨識機",
|
| 61 |
description=some_text,
|
| 62 |
+
examples=sample_images, live=True).launch(share=True)p
|
| 63 |
|
| 64 |
# def greet(name):
|
| 65 |
|
|
|
|
| 72 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 73 |
|
| 74 |
# .launch(share=True)
|
| 75 |
+
# iface.launch()
|