Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def generate(prompt, history, user_system_prompt, temperature=0.9, max_new_token
|
|
36 |
formatted_time = now.strftime("%H.%M.%S, %B, %Y")
|
37 |
|
38 |
# Load chat history from localStorage
|
39 |
-
loaded_history = gr.
|
40 |
history = loaded_history + history
|
41 |
|
42 |
formatted_prompt = format_prompt(f"{prompt}", history, system_prompt)
|
|
|
36 |
formatted_time = now.strftime("%H.%M.%S, %B, %Y")
|
37 |
|
38 |
# Load chat history from localStorage
|
39 |
+
loaded_history = gr.context.client.call('loadChat')
|
40 |
history = loaded_history + history
|
41 |
|
42 |
formatted_prompt = format_prompt(f"{prompt}", history, system_prompt)
|