Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from transformers import pipeline
|
|
5 |
generate_text = pipeline(
|
6 |
model="Stevross/Astrid-7B-Assistant-CPU",
|
7 |
task="text-generation",
|
|
|
8 |
device=0 # Use GPU if available, otherwise CPU
|
9 |
)
|
10 |
|
|
|
5 |
generate_text = pipeline(
|
6 |
model="Stevross/Astrid-7B-Assistant-CPU",
|
7 |
task="text-generation",
|
8 |
+
trust_remote_code=True,
|
9 |
device=0 # Use GPU if available, otherwise CPU
|
10 |
)
|
11 |
|