Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ import io
|
|
| 8 |
|
| 9 |
client = Client()
|
| 10 |
|
|
|
|
| 11 |
def truncate_history(history, max_tokens=2048):
|
| 12 |
truncated_history = []
|
| 13 |
total_tokens = 0
|
|
|
|
| 8 |
|
| 9 |
client = Client()
|
| 10 |
|
| 11 |
+
|
| 12 |
def truncate_history(history, max_tokens=2048):
|
| 13 |
truncated_history = []
|
| 14 |
total_tokens = 0
|