Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -6,7 +6,8 @@ app = FastAPI()
|
|
| 6 |
|
| 7 |
class PromptRequest(BaseModel):
|
| 8 |
text: str
|
| 9 |
-
persona: str = "You are a helpful assistant."
|
|
|
|
| 10 |
|
| 11 |
# --- NEW: Add a Root Route (The Health Check) ---
|
| 12 |
@app.get("/")
|
|
|
|
| 6 |
|
| 7 |
class PromptRequest(BaseModel):
|
| 8 |
text: str
|
| 9 |
+
persona: str = "You are a knowledgable and helpful assistant."
|
| 10 |
+
max_tokens: int = 500
|
| 11 |
|
| 12 |
# --- NEW: Add a Root Route (The Health Check) ---
|
| 13 |
@app.get("/")
|