Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key ="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"
|
|
8 |
start_sequence = "\nAI:"
|
9 |
restart_sequence = "\nHuman: "
|
10 |
|
11 |
-
def predict(input,
|
12 |
|
13 |
s = list(sum(history, ()))
|
14 |
s.append(input)
|
|
|
8 |
start_sequence = "\nAI:"
|
9 |
restart_sequence = "\nHuman: "
|
10 |
|
11 |
+
def predict(input,history=[]):
|
12 |
|
13 |
s = list(sum(history, ()))
|
14 |
s.append(input)
|