Spaces:
Running
Running
LucyintheSky
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -50,14 +50,15 @@ def predict_features(image_path):
|
|
50 |
|
51 |
|
52 |
|
53 |
-
def
|
54 |
return str(predict_features(image))
|
55 |
|
56 |
-
demo = gr.Interface(fn=
|
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()
|