Spaces:
Paused
Paused
Commit ·
4f80c95
1
Parent(s): df6ba08
pipeline again
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 17 |
)
|
| 18 |
|
| 19 |
# Then create the pipeline with the model and tokenizer
|
| 20 |
-
|
| 21 |
|
| 22 |
@spaces.GPU
|
| 23 |
def greet(name):
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
# Then create the pipeline with the model and tokenizer
|
| 20 |
+
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer)
|
| 21 |
|
| 22 |
@spaces.GPU
|
| 23 |
def greet(name):
|