Update main.py
Browse files
main.py
CHANGED
@@ -28,11 +28,14 @@ pipeline = build_pipeline(provider, API_KEY, document_store)
|
|
28 |
# For details, like which documents were used to generate the answer, look into the <result> object
|
29 |
#print_answers(result, details="minimum") #minimum, medium, all
|
30 |
|
|
|
31 |
@app.get("/")
|
32 |
async def root():
|
33 |
#return {"message": "Hello World"}
|
34 |
#return generator('What is love',max_length=100, num_return_sequences=1)
|
35 |
return print_answers(result, details="medium")
|
|
|
|
|
36 |
|
37 |
@app.post("/predict")
|
38 |
async def root(text):
|
|
|
28 |
# For details, like which documents were used to generate the answer, look into the <result> object
|
29 |
#print_answers(result, details="minimum") #minimum, medium, all
|
30 |
|
31 |
+
'''
|
32 |
@app.get("/")
|
33 |
async def root():
|
34 |
#return {"message": "Hello World"}
|
35 |
#return generator('What is love',max_length=100, num_return_sequences=1)
|
36 |
return print_answers(result, details="medium")
|
37 |
+
'''
|
38 |
+
|
39 |
|
40 |
@app.post("/predict")
|
41 |
async def root(text):
|