Spaces:
Paused
Paused
Commit ·
7e624c0
1
Parent(s): a39d8f4
try again
Browse files
app.py
CHANGED
|
@@ -49,15 +49,11 @@ def predict(code):
|
|
| 49 |
top_p=0.09,
|
| 50 |
temperature=1.2,
|
| 51 |
repetition_penalty=1.1,
|
|
|
|
| 52 |
)
|
| 53 |
print(f"Pipe out: {repr(pipe_out)}")
|
| 54 |
|
| 55 |
-
return
|
| 56 |
-
model.generate(
|
| 57 |
-
tokenizer.encode(prompt, return_tensors="pt"), max_length=10**6
|
| 58 |
-
)[0]
|
| 59 |
-
)
|
| 60 |
-
|
| 61 |
|
| 62 |
demo = gr.Interface(
|
| 63 |
fn=predict,
|
|
|
|
| 49 |
top_p=0.09,
|
| 50 |
temperature=1.2,
|
| 51 |
repetition_penalty=1.1,
|
| 52 |
+
return_full_text=False
|
| 53 |
)
|
| 54 |
print(f"Pipe out: {repr(pipe_out)}")
|
| 55 |
|
| 56 |
+
return pipe_out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
demo = gr.Interface(
|
| 59 |
fn=predict,
|