Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def segment(image):
|
|
72 |
print(image)
|
73 |
image_url = image
|
74 |
|
75 |
-
return agent(f"Describe the following image:\n{image_url}")
|
76 |
|
77 |
demo = gr.Interface(segment, gr.Image(type="filepath",shape=(200, 200)), "text")
|
78 |
demo.launch()
|
|
|
72 |
print(image)
|
73 |
image_url = image
|
74 |
|
75 |
+
return agent(f"Describe the following image:\n{image_url}")['output']
|
76 |
|
77 |
demo = gr.Interface(segment, gr.Image(type="filepath",shape=(200, 200)), "text")
|
78 |
demo.launch()
|