Spaces:
Sleeping
Sleeping
amirhosseinkarami
commited on
Commit
·
bd201c2
1
Parent(s):
d6fc489
Create app.py
Browse files
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()
|