LucyintheSky commited on
Commit
e0925da
β€’
1 Parent(s): 122c3c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -50,14 +50,15 @@ def predict_features(image_path):
50
 
51
 
52
 
53
- def greet(image):
54
  return str(predict_features(image))
55
 
56
- demo = gr.Interface(fn=greet,
57
  title='Feature Prediction',
58
  description="""
59
  [Model](https://huggingface.co/LucyintheSky/lucy-feature-prediction)
60
  """,
61
  inputs=gr.Image(type='filepath'),
62
- outputs="text")
 
63
  demo.launch()
 
50
 
51
 
52
 
53
+ def analyze(image):
54
  return str(predict_features(image))
55
 
56
+ demo = gr.Interface(fn=analyze,
57
  title='Feature Prediction',
58
  description="""
59
  [Model](https://huggingface.co/LucyintheSky/lucy-feature-prediction)
60
  """,
61
  inputs=gr.Image(type='filepath'),
62
+ outputs="text",
63
+ examples=[['./1.jpg'], ['./2.jpg'], ['./3.jpg'], ['./4.jpg']])
64
  demo.launch()