irmakakin commited on
Commit
40d0abc
·
verified ·
1 Parent(s): cae37a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def respond(message, history):
30
  return response['choices'][0]['message']['content'].strip()
31
 
32
  chatbot = gr.ChatInterface(respond, type="messages")
33
-
34
  def preprocess_text(text):
35
  # Strip extra whitespace from the beginning and the end of the text
36
  cleaned_text = text.strip()
@@ -39,7 +39,7 @@ def preprocess_text(text):
39
  chunks = cleaned_text.split("\n")
40
 
41
  # Create an empty list to store cleaned chunks
42
- cleaned_chunks = []
43
 
44
  # Write your for-in loop below to clean each chunk and add it to the cleaned_chunks list
45
  for chunk in chunks:
 
30
  return response['choices'][0]['message']['content'].strip()
31
 
32
  chatbot = gr.ChatInterface(respond, type="messages")
33
+ cleaned_chunks = []
34
  def preprocess_text(text):
35
  # Strip extra whitespace from the beginning and the end of the text
36
  cleaned_text = text.strip()
 
39
  chunks = cleaned_text.split("\n")
40
 
41
  # Create an empty list to store cleaned chunks
42
+ #cleaned_chunks = []
43
 
44
  # Write your for-in loop below to clean each chunk and add it to the cleaned_chunks list
45
  for chunk in chunks: