Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,11 @@ import torch
|
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
8 |
from transformers import pipeline
|
9 |
|
10 |
-
model = pipeline("text-generation" , model="appvoid/palmer-004
|
11 |
|
12 |
@spaces.GPU
|
13 |
def predict(prompt):
|
14 |
-
completion = model(prompt, max_new_tokens=64, temperature=0.
|
15 |
return completion
|
16 |
|
17 |
gr.Interface(
|
|
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
model = pipeline("text-generation" , model="appvoid/palmer-004")
|
11 |
|
12 |
@spaces.GPU
|
13 |
def predict(prompt):
|
14 |
+
completion = model(prompt, max_new_tokens=64, temperature=0.3)[0]["generated_text"]
|
15 |
return completion
|
16 |
|
17 |
gr.Interface(
|