Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ from transformers import pipeline
|
|
| 4 |
|
| 5 |
model = "daniel-dona/gemma-3-270m-it"
|
| 6 |
|
| 7 |
-
pipe = pipeline("text-generation", model=model)
|
| 8 |
|
| 9 |
-
|
| 10 |
def respond(
|
| 11 |
message,
|
| 12 |
history: list[tuple[str, str]],
|
|
|
|
| 4 |
|
| 5 |
model = "daniel-dona/gemma-3-270m-it"
|
| 6 |
|
| 7 |
+
pipe = pipeline("text-generation", model=model, device="cuda")
|
| 8 |
|
| 9 |
+
@spaces.GPU
|
| 10 |
def respond(
|
| 11 |
message,
|
| 12 |
history: list[tuple[str, str]],
|