Nandan1377 commited on
Commit
f9eb82f
1 Parent(s): 24da88c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -13,7 +13,7 @@ model = AutoModel.from_pretrained("microsoft/BiomedNLP-PubMedBERT-base-uncased-a
13
  # Step 1: Read CSV and extract relevant rows for the first ten data points
14
  csv_filename = "new.csv"
15
  grants_data = []
16
-
17
  with open(csv_filename, "r", encoding="utf-8") as csv_file:
18
  csv_reader = csv.DictReader(csv_file)
19
  for i, row in enumerate(csv_reader):
@@ -33,6 +33,9 @@ if st.button("Calculate Similarity"):
33
  similarity_scores = []
34
 
35
  for grant_data in grants_data:
 
 
 
36
  grant_description = grant_data["opportunitytitle"][:3000] # Truncate the description to reduce tokens
37
 
38
  # Tokenize the reference text and grant description
 
13
  # Step 1: Read CSV and extract relevant rows for the first ten data points
14
  csv_filename = "new.csv"
15
  grants_data = []
16
+ i =0
17
  with open(csv_filename, "r", encoding="utf-8") as csv_file:
18
  csv_reader = csv.DictReader(csv_file)
19
  for i, row in enumerate(csv_reader):
 
33
  similarity_scores = []
34
 
35
  for grant_data in grants_data:
36
+ i =i+1
37
+ print(i)
38
+
39
  grant_description = grant_data["opportunitytitle"][:3000] # Truncate the description to reduce tokens
40
 
41
  # Tokenize the reference text and grant description