Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def get_caption_from_kosmos(image_in):
|
|
| 65 |
return truncated_caption
|
| 66 |
|
| 67 |
def get_caption(image_in):
|
| 68 |
-
client = Client("fffiloni/moondream1", hf_token=hf_token)
|
| 69 |
result = client.predict(
|
| 70 |
image=handle_file(image_in),
|
| 71 |
question="Describe precisely the image in one sentence.",
|
|
|
|
| 65 |
return truncated_caption
|
| 66 |
|
| 67 |
def get_caption(image_in):
|
| 68 |
+
client = Client("fffiloni/moondream1", hf_token=hf_token)
|
| 69 |
result = client.predict(
|
| 70 |
image=handle_file(image_in),
|
| 71 |
question="Describe precisely the image in one sentence.",
|