amirhosseinkarami commited on
Commit
bd201c2
1 Parent(s): d6fc489

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ demo = gr.Interface(fn=recom,
4
+ inputs=[gr.Dropdown(choices = list(desc['title'][:20]), multiselect=True, max_choices=3, label="Movies"),
5
+ gr.Radio(["bert", "scibert", "nltk" , "none"], value="none", label="Tokenization and text preprocess")],
6
+ outputs=gr.Textbox(label="Recommended"))
7
+ demo.launch()