yxmauw commited on
Commit
f7a11ea
·
verified ·
1 Parent(s): 572bbdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,11 +5,11 @@ import json
5
  import time
6
  from load_llms import model_choices, llm_intro, load_model
7
 
 
8
 
9
  # Construct chatbot
10
  def generate_response(model_name, message, chat_history):
11
  model = load_model(model_name)
12
- chat_history = []
13
  if len(chat_history) > 0:
14
  past_chat = ", ".join(chat_history)
15
  input_text = past_chat + " " + message
 
5
  import time
6
  from load_llms import model_choices, llm_intro, load_model
7
 
8
+ chat_history = []
9
 
10
  # Construct chatbot
11
  def generate_response(model_name, message, chat_history):
12
  model = load_model(model_name)
 
13
  if len(chat_history) > 0:
14
  past_chat = ", ".join(chat_history)
15
  input_text = past_chat + " " + message