Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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])
|
| 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")
|