zting commited on
Commit
08b45fa
1 Parent(s): 6754b51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}").get('output').replace('The response to your last comment is','')
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()