Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,8 @@ itt_pipe = pipeline("image-to-text",
|
|
7 |
|
8 |
|
9 |
text = gr.Interface(
|
10 |
-
|
11 |
-
|
12 |
-
type="pil"),
|
13 |
-
outputs=gr.Image(label="Text describe the image",
|
14 |
-
type="pil")
|
15 |
)
|
16 |
text.launch()
|
17 |
print(text)
|
|
|
7 |
|
8 |
|
9 |
text = gr.Interface(
|
10 |
+
fn=itt_pipe,
|
11 |
+
inputs=gr.Image(label="Input image", type="pil"), outputs=gr.Image(label="Text describe the image", type="pil")
|
|
|
|
|
|
|
12 |
)
|
13 |
text.launch()
|
14 |
print(text)
|