ccwu0918 commited on
Commit
fea9eb8
·
1 Parent(s): 0ca4de7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,12 +54,12 @@ for i in range(5):
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)
63
 
64
  # def greet(name):
65
 
@@ -72,4 +72,4 @@ 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
+ iface = gr.Interface(fn=classify_image,
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
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
73
 
74
  # .launch(share=True)
75
+ iface.launch()