TarunEnma commited on
Commit
6c3331a
·
verified ·
1 Parent(s): d89b747

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -55,6 +55,9 @@ class CharLevelEmbeddings(Embeddings):
55
  # Example: Simple character-level embedding by converting characters to their ASCII values.
56
  # In practice, use a more sophisticated method or pretrained model.
57
  return np.array([ord(char) for char in text])
 
 
 
58
 
59
  def get_text():
60
  input_text = st.text_input("You: ", key="input")
@@ -81,3 +84,4 @@ if user_input and submit:
81
  page_content = document.page_content
82
 
83
  st.write(page_content)
 
 
55
  # Example: Simple character-level embedding by converting characters to their ASCII values.
56
  # In practice, use a more sophisticated method or pretrained model.
57
  return np.array([ord(char) for char in text])
58
+
59
+ def embed_query(self, text):
60
+ return self.embed_text(text)
61
 
62
  def get_text():
63
  input_text = st.text_input("You: ", key="input")
 
84
  page_content = document.page_content
85
 
86
  st.write(page_content)
87
+