Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,8 @@ def get_caption(image_in):
|
|
| 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
|
| 72 |
-
api_name="/answer_question"
|
|
|
|
| 73 |
)
|
| 74 |
print(result)
|
| 75 |
return result
|
|
|
|
| 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
|
| 72 |
+
#api_name="/answer_question"
|
| 73 |
+
api_name="/predict"
|
| 74 |
)
|
| 75 |
print(result)
|
| 76 |
return result
|