File size: 275 Bytes
08fedc0
 
 
ad8c339
08fedc0
 
 
 
 
02ecf35
08fedc0
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import transformers

pipe = transformers.pipeline("text2text-generation", model="ejschwartz/slade-x86-O3")

def predict(asm):
    return pipe(asm, max_length=1024)

demo = gr.Interface(fn=predict, inputs="text", outputs="text")
demo.queue()
demo.launch()