Spaces:
Sleeping
Sleeping
pdrMottaS
commited on
Commit
·
d4c6396
1
Parent(s):
eded6a6
change python version
Browse files
main.py
CHANGED
@@ -37,9 +37,9 @@ async def query_database(query:str):
|
|
37 |
df = conn.execute(query).fetch_df()
|
38 |
return JSONResponse(df.to_json(orient = "records"))
|
39 |
|
40 |
-
@app.post("/llm")
|
41 |
-
async def llm(prompt: str):
|
42 |
-
|
43 |
-
|
44 |
|
45 |
uvicorn.run(app,host='0.0.0.0',port=7860)
|
|
|
37 |
df = conn.execute(query).fetch_df()
|
38 |
return JSONResponse(df.to_json(orient = "records"))
|
39 |
|
40 |
+
# @app.post("/llm")
|
41 |
+
# async def llm(prompt: str):
|
42 |
+
# response = query_engine.query(prompt)
|
43 |
+
# return JSONResponse({"promt":prompt,"response":response})
|
44 |
|
45 |
uvicorn.run(app,host='0.0.0.0',port=7860)
|