Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,9 @@ except:
|
|
54 |
})
|
55 |
})
|
56 |
|
57 |
-
|
|
|
|
|
58 |
async def send_chat_message(LLM_URL, LLM_API, user_input):
|
59 |
payload = {
|
60 |
"inputs": {},
|
|
|
54 |
})
|
55 |
})
|
56 |
|
57 |
+
from async_lru import alru_cache
|
58 |
+
|
59 |
+
@alru_cache(maxsize=32)
|
60 |
async def send_chat_message(LLM_URL, LLM_API, user_input):
|
61 |
payload = {
|
62 |
"inputs": {},
|