UNAVS commited on
Commit
c4ef90b
1 Parent(s): 5e361d7

Update app.py for pip

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from keybert import KeyBERT
2
  from keyphrase_vectorizers import KeyphraseCountVectorizer
3
  import gradio as gr
@@ -16,4 +18,4 @@ def get_keywords(course_name, course_desc):
16
 
17
  iface = gr.Interface(fn=get_keywords, inputs=[gr.Textbox(label="Course Name"), gr.Textbox(label="Course Description")], outputs=gr.Textbox(label="Relevant Tags"),
18
  title="College Course Tags Generator", description="Generating tags/keywords based on Keyphrase-BERT Extraction'")
19
- iface.launch()
 
1
+ !pip install -qq keybert
2
+ !pip install -qq keyphrase_vectorizers
3
  from keybert import KeyBERT
4
  from keyphrase_vectorizers import KeyphraseCountVectorizer
5
  import gradio as gr
 
18
 
19
  iface = gr.Interface(fn=get_keywords, inputs=[gr.Textbox(label="Course Name"), gr.Textbox(label="Course Description")], outputs=gr.Textbox(label="Relevant Tags"),
20
  title="College Course Tags Generator", description="Generating tags/keywords based on Keyphrase-BERT Extraction'")
21
+ iface.launch()