Spaces:
Sleeping
Sleeping
Corrected issues
Browse files
main.py
CHANGED
@@ -99,7 +99,8 @@ async def generate_topic(
|
|
99 |
img_file_object = app.state.url_utils.load_image(img_url)
|
100 |
|
101 |
capt = app.state.img_caption.combo_model(img_file_object, text)
|
102 |
-
|
|
|
103 |
|
104 |
raise HTTPException(
|
105 |
status_code=status.HTTP_400_BAD_REQUEST,
|
|
|
99 |
img_file_object = app.state.url_utils.load_image(img_url)
|
100 |
|
101 |
capt = app.state.img_caption.combo_model(img_file_object, text)
|
102 |
+
print(capt)
|
103 |
+
return TopicResponse(topics=capt["topics"], caption=capt["caption"])
|
104 |
|
105 |
raise HTTPException(
|
106 |
status_code=status.HTTP_400_BAD_REQUEST,
|