Vish2005 commited on
Commit
2ba098a
1 Parent(s): 3f10c55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,6 +31,7 @@ Our main method first asks the user for their openai key. Then we have some test
31
 
32
  import pandas as pd
33
  import spacy
 
34
  import tensorflow_hub as hub
35
  from scipy.spatial import distance
36
  from numpy.core.fromnumeric import argmax
@@ -46,7 +47,7 @@ service = pd.read_csv('cust_service_data.csv')
46
  """# Entity Extraction"""
47
 
48
  # extract entities, label, label definition from natural language questions and append to dataframe
49
- nlp = spacy.load("en_core_web_sm")
50
  def EntityExtraction(text:str):
51
  # print(text)
52
  entities = []
 
31
 
32
  import pandas as pd
33
  import spacy
34
+ import en_core_web_sm
35
  import tensorflow_hub as hub
36
  from scipy.spatial import distance
37
  from numpy.core.fromnumeric import argmax
 
47
  """# Entity Extraction"""
48
 
49
  # extract entities, label, label definition from natural language questions and append to dataframe
50
+ nlp = en_core_web_sm.load()
51
  def EntityExtraction(text:str):
52
  # print(text)
53
  entities = []