Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,8 +84,8 @@ conv = Conversation(prompt, 5)
|
|
| 84 |
|
| 85 |
def predict(input, history=[]):
|
| 86 |
history.append(input)
|
| 87 |
-
response = conv.ask(input)
|
| 88 |
-
|
| 89 |
history.append(response)
|
| 90 |
responses = [(u,b) for u,b in zip(history[::2], history[1::2])]
|
| 91 |
return responses, history
|
|
|
|
| 84 |
|
| 85 |
def predict(input, history=[]):
|
| 86 |
history.append(input)
|
| 87 |
+
# response = conv.ask(input)
|
| 88 |
+
response = conv.askWithProxy(input)
|
| 89 |
history.append(response)
|
| 90 |
responses = [(u,b) for u,b in zip(history[::2], history[1::2])]
|
| 91 |
return responses, history
|