Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +2 -2
app/main.py
CHANGED
@@ -127,8 +127,8 @@ async def ask_gemmaFinanceTH(
|
|
127 |
return HTTPException(400, QuestionResponse(code=400, answer="Request argument 'prompt' not provided."))
|
128 |
|
129 |
|
130 |
-
@app.post('/questions/
|
131 |
-
async def
|
132 |
prompt: str = Body(..., embed=True, example="Why is ice cream so delicious?"),
|
133 |
temperature: float = Body(0.5, embed=True),
|
134 |
max_new_tokens: int = Body(200, embed=True)
|
|
|
127 |
return HTTPException(400, QuestionResponse(code=400, answer="Request argument 'prompt' not provided."))
|
128 |
|
129 |
|
130 |
+
@app.post('/questions/open-ended')
|
131 |
+
async def ask_gemmaWild(
|
132 |
prompt: str = Body(..., embed=True, example="Why is ice cream so delicious?"),
|
133 |
temperature: float = Body(0.5, embed=True),
|
134 |
max_new_tokens: int = Body(200, embed=True)
|