Spaces:
Sleeping
Sleeping
Update main.py
Browse filesremove forward slash
main.py
CHANGED
|
@@ -74,7 +74,7 @@ def api_home():
|
|
| 74 |
return {'detail': 'Welcome to FastAPI Subtopics API! /n visit https://pvanand-generate-subtopics.hf.space/docs to test'}
|
| 75 |
|
| 76 |
|
| 77 |
-
@app.post("/generate_topics
|
| 78 |
async def create_topics(input: TopicInput):
|
| 79 |
topics = generate_topics(input.user_input, input.num_topics, input.previous_query)
|
| 80 |
return {"topics": topics}
|
|
|
|
| 74 |
return {'detail': 'Welcome to FastAPI Subtopics API! /n visit https://pvanand-generate-subtopics.hf.space/docs to test'}
|
| 75 |
|
| 76 |
|
| 77 |
+
@app.post("/generate_topics")
|
| 78 |
async def create_topics(input: TopicInput):
|
| 79 |
topics = generate_topics(input.user_input, input.num_topics, input.previous_query)
|
| 80 |
return {"topics": topics}
|