kavansaun commited on
Commit
5897648
·
verified ·
1 Parent(s): 457df53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
54
 
55
  user_dictionary[user_id].append({"role": "assistant", "content": reply_prompt}) # Adds the chatbots response to the history as an "assistant". This is the role commonly used for chatbots.
56
 
57
- response = [(user_dictionary[user_id][i]["content"], user_dictionary[user_id][i+1]["content"]) for i in range(1, len(user_dictionary[user_id])-1, 2)] # Variable for the response
58
 
59
  # Repository details
60
  repo = g.get_user().get_repo("CATDATA")
 
54
 
55
  user_dictionary[user_id].append({"role": "assistant", "content": reply_prompt}) # Adds the chatbots response to the history as an "assistant". This is the role commonly used for chatbots.
56
 
57
+ response = [(user_dictionary[user_id][i]["content"], user_dictionary[user_id][i+1]["content"]) for i in range(1, len(user_dictionary[user_id]), 2)] # Variable for the response
58
 
59
  # Repository details
60
  repo = g.get_user().get_repo("CATDATA")