Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ pipe = pipeline("image-to-text",
|
|
5 |
|
6 |
def launch(input):
|
7 |
out=pipe(input)
|
8 |
-
|
9 |
|
10 |
iface = gr.Interface(launch,
|
11 |
inputs=gr.Image(type='pil'),
|
|
|
5 |
|
6 |
def launch(input):
|
7 |
out=pipe(input)
|
8 |
+
return out[0]['generated_text']
|
9 |
|
10 |
iface = gr.Interface(launch,
|
11 |
inputs=gr.Image(type='pil'),
|