Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
@@ -70,10 +70,8 @@ def root():
|
|
70 |
|
71 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
72 |
|
73 |
-
|
74 |
@app.post('/predict')
|
75 |
async def predict(data: Predict):
|
76 |
-
global QA
|
77 |
user_prompt = data.prompt
|
78 |
if user_prompt:
|
79 |
# print(f'User Prompt: {user_prompt}')
|
|
|
70 |
|
71 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
72 |
|
|
|
73 |
@app.post('/predict')
|
74 |
async def predict(data: Predict):
|
|
|
75 |
user_prompt = data.prompt
|
76 |
if user_prompt:
|
77 |
# print(f'User Prompt: {user_prompt}')
|