ejschwartz commited on
Commit
08fedc0
·
1 Parent(s): 8e592db

Add basic app

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import transformers
3
+
4
+ pipe = pipeline("text2text-generation", model="ejschwartz/slade-x86-O3")
5
+
6
+ def predict(asm):
7
+ return pipe(asm, max_length=1024)
8
+
9
+ demo = gr.Interface(fn=predict, inputs="text", outputs="text")
10
+ demo.launch()