SonyaHas commited on
Commit
70a8a83
·
verified ·
1 Parent(s): cf5698b

updated to skin cancer harvard txt

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,8 +8,8 @@ import torch
8
  # SEMANTIC SEARCH STEP 2 --> EDIT WITH YOUR OWN KNOWLEDGE BASE WHEN READY
9
  with open("Skin_cancer_harvard.txt", "r", encoding="utf-8") as file:
10
  # Read the entire contents of the file and store it in a variable
11
- water_cycle_text = file.read()
12
- print(water_cycle_text)
13
 
14
  # SEMANTIC SEARCH STEP 3
15
  def preprocess_text(text):
@@ -34,7 +34,7 @@ def preprocess_text(text):
34
  return cleaned_chunks
35
 
36
  # Call the preprocess_text function and store the result in a cleaned_chunks variable
37
- cleaned_chunks = preprocess_text(water_cycle_text) # Complete this line; edit with my knowledgebase when ready
38
 
39
  # SEMANTIC SEARCH STEP 4
40
  model = SentenceTransformer('all-MiniLM-L6-v2')
 
8
  # SEMANTIC SEARCH STEP 2 --> EDIT WITH YOUR OWN KNOWLEDGE BASE WHEN READY
9
  with open("Skin_cancer_harvard.txt", "r", encoding="utf-8") as file:
10
  # Read the entire contents of the file and store it in a variable
11
+ Skin_cancer_harvard_text = file.read()
12
+ print(Skin_cancer_harvard_text)
13
 
14
  # SEMANTIC SEARCH STEP 3
15
  def preprocess_text(text):
 
34
  return cleaned_chunks
35
 
36
  # Call the preprocess_text function and store the result in a cleaned_chunks variable
37
+ cleaned_chunks = preprocess_text(Skin_cancer_harvard_text) # Complete this line; edit with my knowledgebase when ready
38
 
39
  # SEMANTIC SEARCH STEP 4
40
  model = SentenceTransformer('all-MiniLM-L6-v2')