gonzalocordova commited on
Commit
405ea99
·
1 Parent(s): 10cf93a

fix: missing import

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
  import NLPutils as nlp
 
3
 
 
4
  model = nlp.load_model()
 
5
  topic_keywords_embed = nlp.get_topic_keywords_embed(model)
6
  topic_centroids = nlp.get_topic_centroids(topic_keywords_embed)
7
  topic_to_id = {'ComputerScience': 0,
 
1
  import gradio as gr
2
  import NLPutils as nlp
3
+ import numpy as np
4
 
5
+ print("Loading model...")
6
  model = nlp.load_model()
7
+ print("Model loaded.")
8
  topic_keywords_embed = nlp.get_topic_keywords_embed(model)
9
  topic_centroids = nlp.get_topic_centroids(topic_keywords_embed)
10
  topic_to_id = {'ComputerScience': 0,