Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -23,7 +23,7 @@ chain = load_summarize_chain(llm, chain_type="stuff")
|
|
| 23 |
|
| 24 |
app = FastAPI()
|
| 25 |
|
| 26 |
-
@app.post('/')
|
| 27 |
async def home_api(request: Request):
|
| 28 |
data = await request.json()
|
| 29 |
user_query = data['user_question']
|
|
|
|
| 23 |
|
| 24 |
app = FastAPI()
|
| 25 |
|
| 26 |
+
@app.post('/api/chat')
|
| 27 |
async def home_api(request: Request):
|
| 28 |
data = await request.json()
|
| 29 |
user_query = data['user_question']
|