Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def format_math(text):
|
|
| 16 |
text = text.replace(r"\(", "$").replace(r"\)", "$")
|
| 17 |
return text
|
| 18 |
|
| 19 |
-
|
| 20 |
def generate_response(user_message, max_tokens, temperature, top_p, history_state):
|
| 21 |
if not user_message.strip():
|
| 22 |
return history_state, history_state
|
|
|
|
| 16 |
text = text.replace(r"\(", "$").replace(r"\)", "$")
|
| 17 |
return text
|
| 18 |
|
| 19 |
+
@spaces.GPU(duration=60)
|
| 20 |
def generate_response(user_message, max_tokens, temperature, top_p, history_state):
|
| 21 |
if not user_message.strip():
|
| 22 |
return history_state, history_state
|