Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ class CalculationRequest(BaseModel):
|
|
| 10 |
b: float
|
| 11 |
operation: str
|
| 12 |
|
| 13 |
-
# Load Hugging Face model (example:
|
| 14 |
-
model = pipeline('text-generation', model='
|
| 15 |
|
| 16 |
@app.post("/calculate")
|
| 17 |
def calculate(request: CalculationRequest):
|
|
|
|
| 10 |
b: float
|
| 11 |
operation: str
|
| 12 |
|
| 13 |
+
# Load a smaller Hugging Face model (example: distilgpt2)
|
| 14 |
+
model = pipeline('text-generation', model='distilgpt2')
|
| 15 |
|
| 16 |
@app.post("/calculate")
|
| 17 |
def calculate(request: CalculationRequest):
|