rande commited on
Commit
df11f29
·
1 Parent(s): 9c286f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,14 +1,19 @@
1
  import streamlit as st
2
  import tl_calamancy_lg
 
 
 
 
 
 
 
3
 
4
  st.title("TagaCare")
5
 
6
  nlp = tl_calamancy_lg.load()
7
 
8
- doc1 = nlp("Anong pangalan ko")
9
- doc2 = nlp("Anong pangalan ni ako")
10
-
11
 
12
- st.success(doc1.similarity(doc2))
13
 
14
 
 
1
  import streamlit as st
2
  import tl_calamancy_lg
3
+ import os
4
+
5
+ # Get the absolute path of the script directory
6
+ cwd = os.getcwd()
7
+
8
+ # Read the CSV file
9
+ csv_path = os.path.join(cwd, "dataset_v2.json")
10
 
11
  st.title("TagaCare")
12
 
13
  nlp = tl_calamancy_lg.load()
14
 
15
+ doc1 = nlp("Pano gamutin ang sakit sa ngipin")
 
 
16
 
17
+ st.success(doc1)
18
 
19