Spaces:
Sleeping
Sleeping
Update modules/utils.py
Browse files- modules/utils.py +4 -0
modules/utils.py
CHANGED
|
@@ -76,6 +76,10 @@ def export_markdown(current_model, *args):
|
|
| 76 |
|
| 77 |
def load_chat_history(current_model, *args):
|
| 78 |
return current_model.load_chat_history(*args)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
def set_token_upper_limit(current_model, *args):
|
| 81 |
return current_model.set_token_upper_limit(*args)
|
|
|
|
| 76 |
|
| 77 |
def load_chat_history(current_model, *args):
|
| 78 |
return current_model.load_chat_history(*args)
|
| 79 |
+
|
| 80 |
+
def upload_chat_history(current_model, file_src, username):
|
| 81 |
+
filename = file_src.name
|
| 82 |
+
return current_model.load_chat_history(filename, username)
|
| 83 |
|
| 84 |
def set_token_upper_limit(current_model, *args):
|
| 85 |
return current_model.set_token_upper_limit(*args)
|