kevinhug commited on
Commit
9a79fc6
·
1 Parent(s): 736fdc2
Files changed (1) hide show
  1. app.py +20 -4
app.py CHANGED
@@ -7,8 +7,13 @@ client = chromadb.PersistentClient(path="chroma.db")
7
 
8
  db = client.get_collection(name="banks")
9
 
10
-
11
-
 
 
 
 
 
12
 
13
  def similar(issue):
14
  global db
@@ -16,14 +21,23 @@ def similar(issue):
16
  return docs
17
 
18
 
19
-
20
- iface = gr.Interface(fn=similar, inputs="text", outputs="text", title="NLP Leads Generation", description="""
 
 
 
 
 
 
 
 
21
  Data Scientist: Kevin Wong, [email protected], 416-903-7937
22
  ============
23
  open source ml bank dataset
24
  https://www.kaggle.com/datasets/trainingdatapro/20000-customers-reviews-on-banks/?select=Banks.csv
25
 
26
  Using Sentence Embedding to inject Public ML Banks Text Dataset @ https://github.com/kevinwkc/analytics/blob/master/ai/vectorDB.py""",
 
27
  article="""
28
 
29
  Description:
@@ -59,5 +73,7 @@ Future Improvement
59
  ============
60
  tuning the distance for use case
61
 
 
 
62
  """)
63
  iface.launch()
 
7
 
8
  db = client.get_collection(name="banks")
9
 
10
+ '''
11
+ https://dash.elfsight.com
12
+ '''
13
+ counter="""
14
+ <script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script>
15
+ <div class="elfsight-app-5f3e8eb9-9103-490e-9999-e20aa4157dc7" data-elfsight-app-lazy></div>
16
+ """
17
 
18
  def similar(issue):
19
  global db
 
21
  return docs
22
 
23
 
24
+ '''
25
+ https://www.gradio.app/docs/interface
26
+ '''
27
+ iface = gr.Interface(fn=similar, inputs="text", outputs="text",
28
+ title="Enhancing Customer Engagement and Operational Efficiency with Semantic Similarity Document Search (SSDS)",
29
+ examples=[["having bad client experience"],
30
+ ["having credit card problem"],
31
+ ["late payment fee"],
32
+ ["credit score dropping"]]
33
+ description="""
34
  Data Scientist: Kevin Wong, [email protected], 416-903-7937
35
  ============
36
  open source ml bank dataset
37
  https://www.kaggle.com/datasets/trainingdatapro/20000-customers-reviews-on-banks/?select=Banks.csv
38
 
39
  Using Sentence Embedding to inject Public ML Banks Text Dataset @ https://github.com/kevinwkc/analytics/blob/master/ai/vectorDB.py""",
40
+ css=counter,
41
  article="""
42
 
43
  Description:
 
73
  ============
74
  tuning the distance for use case
75
 
76
+ <script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script>
77
+ <div class="elfsight-app-5f3e8eb9-9103-490e-9999-e20aa4157dc7" data-elfsight-app-lazy></div>
78
  """)
79
  iface.launch()