Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ pipe = pipeline(
|
|
| 12 |
|
| 13 |
@spaces.GPU
|
| 14 |
def infer(prompt):
|
| 15 |
-
return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0)[0]["generated_text"]
|
| 16 |
|
| 17 |
with gr.Blocks(fill_width=True, css="""
|
| 18 |
#prompt-box textarea {height:200px}
|
|
|
|
| 12 |
|
| 13 |
@spaces.GPU
|
| 14 |
def infer(prompt):
|
| 15 |
+
return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0, return_full_text=False)[0]["generated_text"]
|
| 16 |
|
| 17 |
with gr.Blocks(fill_width=True, css="""
|
| 18 |
#prompt-box textarea {height:200px}
|