riyamalshe commited on
Commit
560beba
·
verified ·
1 Parent(s): 90b0d7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,10 +9,10 @@ import torch
9
  # Open the water_cycle.txt file in read mode with UTF-8 encoding
10
  with open("scholar_bot_knowledge.txt", "r", encoding="utf-8") as file:
11
  # Read the entire contents of the file and store it in a variable
12
- water_cycle_text = file.read()
13
 
14
  # Print the text below
15
- print(water_cycle_text)
16
 
17
 
18
  # STEP 3 FROM SEMANTIC SEARCH
@@ -43,7 +43,7 @@ def preprocess_text(text):
43
  return cleaned_chunks
44
 
45
  # Call the preprocess_text function and store the result in a cleaned_chunks variable
46
- cleaned_chunks = preprocess_text(water_cycle_text) # Complete this line
47
 
48
  #STEP 4 FROM SEMANTIC SEARCH
49
  # Load the pre-trained embedding model that converts text to vectors
 
9
  # Open the water_cycle.txt file in read mode with UTF-8 encoding
10
  with open("scholar_bot_knowledge.txt", "r", encoding="utf-8") as file:
11
  # Read the entire contents of the file and store it in a variable
12
+ scholar_bot_text = file.read()
13
 
14
  # Print the text below
15
+ print(scholar_bot_text)
16
 
17
 
18
  # STEP 3 FROM SEMANTIC SEARCH
 
43
  return cleaned_chunks
44
 
45
  # Call the preprocess_text function and store the result in a cleaned_chunks variable
46
+ cleaned_chunks = preprocess_text(scholar_bot_text) # Complete this line
47
 
48
  #STEP 4 FROM SEMANTIC SEARCH
49
  # Load the pre-trained embedding model that converts text to vectors