Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,12 @@ api = FastAPI()
|
|
8 |
|
9 |
|
10 |
|
11 |
-
@
|
12 |
def greet_json():
|
13 |
return {"Hello": "World!"}
|
14 |
|
15 |
# if __name__ == "__main__":
|
16 |
-
@
|
17 |
def rag_pipeline_graph():
|
18 |
graph = get_rag_pipeline_graph()
|
19 |
|
|
|
8 |
|
9 |
|
10 |
|
11 |
+
@api.get("/")
|
12 |
def greet_json():
|
13 |
return {"Hello": "World!"}
|
14 |
|
15 |
# if __name__ == "__main__":
|
16 |
+
@api.post("/")
|
17 |
def rag_pipeline_graph():
|
18 |
graph = get_rag_pipeline_graph()
|
19 |
|