Spaces:
Runtime error
Runtime error
Navanjana
commited on
Commit
•
04fbf90
1
Parent(s):
cbb0449
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
|
6 |
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
|
7 |
-
max_history =
|
8 |
chat_history_ids = None
|
9 |
|
10 |
def chatbot(user_input):
|
|
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
|
6 |
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
|
7 |
+
max_history = 10 # Maximum number of previous chat turns to include in the conversation history
|
8 |
chat_history_ids = None
|
9 |
|
10 |
def chatbot(user_input):
|