Spaces:
Running
Running
ejschwartz
commited on
Commit
•
3203111
1
Parent(s):
3116465
Beam search
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import transformers
|
|
4 |
pipe = transformers.pipeline("text2text-generation", model="ejschwartz/slade-x86-O3")
|
5 |
|
6 |
def predict(asm):
|
7 |
-
o = pipe(asm, max_length=1024)
|
8 |
return o[0]['generated_text']
|
9 |
|
10 |
demo = gr.Interface(fn=predict,
|
|
|
4 |
pipe = transformers.pipeline("text2text-generation", model="ejschwartz/slade-x86-O3")
|
5 |
|
6 |
def predict(asm):
|
7 |
+
o = pipe(asm, max_length=1024, num_beams=5, num_return_sequences=1)
|
8 |
return o[0]['generated_text']
|
9 |
|
10 |
demo = gr.Interface(fn=predict,
|