Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,14 @@ def call_langflow(message, history, request: gr.Request = None):
|
|
| 25 |
|
| 26 |
if session_hash not in session_storage:
|
| 27 |
session_storage[session_hash] = str(uuid.uuid4())
|
|
|
|
| 28 |
|
| 29 |
langflow_session_id = session_storage[session_hash]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
headers = {
|
| 32 |
"Content-Type": "application/json",
|
|
|
|
| 25 |
|
| 26 |
if session_hash not in session_storage:
|
| 27 |
session_storage[session_hash] = str(uuid.uuid4())
|
| 28 |
+
print(f"🆕 NEW SESSION created: {session_storage[session_hash]}")
|
| 29 |
|
| 30 |
langflow_session_id = session_storage[session_hash]
|
| 31 |
+
|
| 32 |
+
# Debug logging
|
| 33 |
+
print(f"📤 Sending message: {message[:50]}...") # First 50 chars
|
| 34 |
+
print(f"🔑 Using session ID: {langflow_session_id}")
|
| 35 |
+
print(f"👤 Gradio session hash: {session_hash}")
|
| 36 |
|
| 37 |
headers = {
|
| 38 |
"Content-Type": "application/json",
|