Spaces:
Runtime error
Runtime error
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("https://
|
69 |
result = client.predict(
|
70 |
image_in, # filepath in 'image' Image component
|
71 |
"Describe precisely the image in one sentence.", # str in 'Question' Textbox component
|
|
|
65 |
return truncated_caption
|
66 |
|
67 |
def get_caption(image_in):
|
68 |
+
client = Client("https://fffiloni-moondream1.hf.space/", hf_token=hf_token)
|
69 |
result = client.predict(
|
70 |
image_in, # filepath in 'image' Image component
|
71 |
"Describe precisely the image in one sentence.", # str in 'Question' Textbox component
|