Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -80,12 +80,12 @@ def get_caption_from_kosmos(image_in):
|
|
80 |
return truncated_caption
|
81 |
|
82 |
def get_caption(image_in):
|
83 |
-
client = Client("https://
|
84 |
result = client.predict(
|
85 |
image_in, # filepath in 'image' Image component
|
86 |
"Describe precisely the image in one sentence.", # str in 'Question' Textbox component
|
87 |
#api_name="/answer_question"
|
88 |
-
api_name="/
|
89 |
)
|
90 |
print(result)
|
91 |
return result
|
|
|
80 |
return truncated_caption
|
81 |
|
82 |
def get_caption(image_in):
|
83 |
+
client = Client("https://vikhyatk-moondream1.hf.space/", hf_token=hf_token)
|
84 |
result = client.predict(
|
85 |
image_in, # filepath in 'image' Image component
|
86 |
"Describe precisely the image in one sentence.", # str in 'Question' Textbox component
|
87 |
#api_name="/answer_question"
|
88 |
+
api_name="/answer_question"
|
89 |
)
|
90 |
print(result)
|
91 |
return result
|