Atualli commited on
Commit
d90ef6c
1 Parent(s): 8a17515

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,9 +176,9 @@ def main():
176
  # Save the image and load it again to match the original Kosmos-2 demo.
177
  # (https://github.com/microsoft/unilm/blob/f4695ed0244a275201fff00bee495f76670fbe70/kosmos-2/demo/gradio_app.py#L345-L346)
178
  user_image_path = "/tmp/user_input_test_image.jpg"
179
- image_input.save(user_image_path)
180
  # This might give different results from the original argument `image_input`
181
- image_input = Image.open(user_image_path)
182
 
183
  if text_input == "Brief":
184
  text_input = "<grounding>An image of"
 
176
  # Save the image and load it again to match the original Kosmos-2 demo.
177
  # (https://github.com/microsoft/unilm/blob/f4695ed0244a275201fff00bee495f76670fbe70/kosmos-2/demo/gradio_app.py#L345-L346)
178
  user_image_path = "/tmp/user_input_test_image.jpg"
179
+ #image_input.save(user_image_path)
180
  # This might give different results from the original argument `image_input`
181
+ #image_input = Image.open(user_image_path)
182
 
183
  if text_input == "Brief":
184
  text_input = "<grounding>An image of"