Spaces:
Sleeping
Sleeping
Update app.py
Browse filesChanged 'GenerateResponse' to 'GenerateResponse3' in @app .post for the 'qa_automation' function
app.py
CHANGED
|
@@ -249,7 +249,7 @@ def api_home():
|
|
| 249 |
def inference(input_prompt: Prompt):
|
| 250 |
return summarize_text(text=input_prompt.text)
|
| 251 |
|
| 252 |
-
@app.post("/api/qautomation", summary="Generate text from prompt", tags=["Generate"], response_model=
|
| 253 |
def inference(input_prompt: Prompt):
|
| 254 |
return qa_automation(text=input_prompt.text)
|
| 255 |
|
|
|
|
| 249 |
def inference(input_prompt: Prompt):
|
| 250 |
return summarize_text(text=input_prompt.text)
|
| 251 |
|
| 252 |
+
@app.post("/api/qautomation", summary="Generate text from prompt", tags=["Generate"], response_model=GenerateResponse3)
|
| 253 |
def inference(input_prompt: Prompt):
|
| 254 |
return qa_automation(text=input_prompt.text)
|
| 255 |
|