Spaces:
Sleeping
Sleeping
laserbeam2045
commited on
Commit
·
9fa7b35
1
Parent(s):
c6f721c
fix
Browse files
app.py
CHANGED
|
@@ -56,6 +56,10 @@ except Exception as e:
|
|
| 56 |
# -----------------------------------------------------------------------------
|
| 57 |
app = FastAPI(title="Gemma3-4B-IT Q4_0 GGUF API")
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
class GenerationRequest(BaseModel):
|
| 60 |
prompt: str
|
| 61 |
max_new_tokens: int = 128
|
|
|
|
| 56 |
# -----------------------------------------------------------------------------
|
| 57 |
app = FastAPI(title="Gemma3-4B-IT Q4_0 GGUF API")
|
| 58 |
|
| 59 |
+
@app.get("/")
|
| 60 |
+
async def read_root():
|
| 61 |
+
return {"message": "Gemma3 API is running"}
|
| 62 |
+
|
| 63 |
class GenerationRequest(BaseModel):
|
| 64 |
prompt: str
|
| 65 |
max_new_tokens: int = 128
|