Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ from transformers import pipeline
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
-
|
|
|
8 |
|
9 |
class Memory(BaseModel):
|
10 |
description: str
|
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
+
# 🔁 MODELİ SADECE CPU'DA ÇALIŞACAK ŞEKİLDE ZORLA
|
8 |
+
generator = pipeline("text2text-generation", model="memorease/memorease-quizgen", device=-1)
|
9 |
|
10 |
class Memory(BaseModel):
|
11 |
description: str
|