Shivam098 commited on
Commit
a37770c
1 Parent(s): dc1cb06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -11,7 +11,8 @@ nlp = spacy.load("en_core_web_md", disable=["ner"])
11
  data = {
12
  "fruit": ["apple", "pear", "orange"],
13
  "vegetable": ["broccoli", "spinach", "tomato"],
14
- "meat": ['beef', 'pork', 'turkey', 'duck']
 
15
  }
16
  nlp.add_pipe(
17
  "concise_concepts",
@@ -38,8 +39,8 @@ if st.button("Process"):
38
 
39
  # Visualization options
40
  options = {
41
- "colors": {"fruit": "darkorange", "vegetable": "limegreen", "meat": "salmon"},
42
- "ents": ["fruit", "vegetable", "meat"],
43
  }
44
 
45
  # JSON serialization with only entity and type
 
11
  data = {
12
  "fruit": ["apple", "pear", "orange"],
13
  "vegetable": ["broccoli", "spinach", "tomato"],
14
+ "meat": ['beef', 'pork', 'turkey', 'duck'],
15
+ "mobile" :["8920136576","9871029576"]
16
  }
17
  nlp.add_pipe(
18
  "concise_concepts",
 
39
 
40
  # Visualization options
41
  options = {
42
+ "colors": {"fruit": "darkorange", "vegetable": "limegreen", "meat": "salmon","mobile":"blue"},
43
+ "ents": ["fruit", "vegetable", "meat","mobile"],
44
  }
45
 
46
  # JSON serialization with only entity and type