peterpull commited on
Commit
d250469
·
1 Parent(s): f807850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,7 +60,7 @@ def store_message(chatinput: str, chatresponse: str):
60
  return generate_text()
61
 
62
  store_message.count_calls = 1 #initiases the count at one. We want to count how many messages stored before pushing back to repo.
63
-
64
  #gets the index file which is the context data
65
  def get_index(index_file_path):
66
  if os.path.exists(index_file_path):
@@ -71,7 +71,6 @@ def get_index(index_file_path):
71
  print(f"Error: '{index_file_path}' does not exist.")
72
  sys.exit()
73
 
74
- openai = OpenAI()
75
  index = get_index(INDEX_FILE)
76
 
77
  # passes the prompt to the chatbot
 
60
  return generate_text()
61
 
62
  store_message.count_calls = 1 #initiases the count at one. We want to count how many messages stored before pushing back to repo.
63
+
64
  #gets the index file which is the context data
65
  def get_index(index_file_path):
66
  if os.path.exists(index_file_path):
 
71
  print(f"Error: '{index_file_path}' does not exist.")
72
  sys.exit()
73
 
 
74
  index = get_index(INDEX_FILE)
75
 
76
  # passes the prompt to the chatbot