BFManza commited on
Commit
7498a97
·
1 Parent(s): 417cd5b

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +11 -0
main.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI, HTTPException, Body
2
+
3
+ app = FastAPI()
4
+
5
+ @app.post("/question/")
6
+ async def read_question(question: str = Body(..., embed=True)):
7
+ return {"Received Question": question}
8
+
9
+ @app.post("/opportunity/")
10
+ async def read_opportunity(opportunity: str = Body(..., embed=True)):
11
+ return {"Received Opportunity": opportunity}