Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ generate_text = pipeline(
|
|
6 |
model="Stevross/Astrid-3B",
|
7 |
task="text-generation",
|
8 |
trust_remote_code=True,
|
9 |
-
device=
|
10 |
)
|
11 |
|
12 |
def generate_response(prompt):
|
|
|
6 |
model="Stevross/Astrid-3B",
|
7 |
task="text-generation",
|
8 |
trust_remote_code=True,
|
9 |
+
device=1 # Use GPU if available, otherwise CPU
|
10 |
)
|
11 |
|
12 |
def generate_response(prompt):
|