Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,12 +68,12 @@ rag_chain = (
|
|
| 68 |
| StrOutputParser()
|
| 69 |
)
|
| 70 |
|
| 71 |
-
def warmup_model():
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
-
# Call the warm-up function during startup
|
| 76 |
-
warmup_model()
|
| 77 |
|
| 78 |
# Define the chat response function
|
| 79 |
def chatresponse(message, history):
|
|
|
|
| 68 |
| StrOutputParser()
|
| 69 |
)
|
| 70 |
|
| 71 |
+
# def warmup_model():
|
| 72 |
+
# dummy_context = {"context": "dummy context", "question": "dummy question"}
|
| 73 |
+
# rag_chain.invoke(dummy_context)
|
| 74 |
|
| 75 |
+
# # Call the warm-up function during startup
|
| 76 |
+
# warmup_model()
|
| 77 |
|
| 78 |
# Define the chat response function
|
| 79 |
def chatresponse(message, history):
|