Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -109,7 +109,7 @@ async def create_report(input: ReportInput):
|
|
| 109 |
report = generate_report(input.topic, input.description)
|
| 110 |
return {"report": report}
|
| 111 |
|
| 112 |
-
@app.post("/
|
| 113 |
async def fetch_images(input: TopicInput):
|
| 114 |
images = get_images(input.topic, input.num_topics)
|
| 115 |
return {"images": images}
|
|
|
|
| 109 |
report = generate_report(input.topic, input.description)
|
| 110 |
return {"report": report}
|
| 111 |
|
| 112 |
+
@app.post("/get_images")
|
| 113 |
async def fetch_images(input: TopicInput):
|
| 114 |
images = get_images(input.topic, input.num_topics)
|
| 115 |
return {"images": images}
|