Update app.py
Browse files
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"
|