Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def consume_llm_api(prompt):
|
|
57 |
except Exception as e:
|
58 |
print(f"Unexpected error: {e}")
|
59 |
|
60 |
-
|
61 |
def encoding_model():
|
62 |
"""
|
63 |
Initializes and returns a SentenceTransformer model for text encoding.
|
|
|
57 |
except Exception as e:
|
58 |
print(f"Unexpected error: {e}")
|
59 |
|
60 |
+
@st.cache_resource
|
61 |
def encoding_model():
|
62 |
"""
|
63 |
Initializes and returns a SentenceTransformer model for text encoding.
|