Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ with gr.Blocks() as demo:
|
|
| 90 |
if "hi" in history[-1][0]:
|
| 91 |
session_index = url_params.get('session_index')
|
| 92 |
if session_index: # Check if session_index is not None or empty
|
| 93 |
-
print(session_index)
|
| 94 |
bot_message = f"""
|
| 95 |
here your URL params:
|
| 96 |
{json.dumps(url_params, indent=4)}
|
|
@@ -113,17 +113,16 @@ with gr.Blocks() as demo:
|
|
| 113 |
""")
|
| 114 |
session_index = url_params.value.get('session_index')
|
| 115 |
if session_index: # Check if session_index is not None or empty
|
| 116 |
-
print(session_index)
|
| 117 |
# Fetch personalized data
|
| 118 |
-
personalized_data = fetch_personalized_data(session_index)
|
| 119 |
-
print(personalized_data)
|
| 120 |
else:
|
| 121 |
print("Session index is missing.")
|
| 122 |
else:
|
| 123 |
print("There are no URL parameters available.")
|
| 124 |
time.sleep(1)
|
| 125 |
return session_index
|
| 126 |
-
|
| 127 |
|
| 128 |
session_index = get_session_index(url_params)
|
| 129 |
personalized_data = fetch_personalized_data(session_index)
|
|
|
|
| 90 |
if "hi" in history[-1][0]:
|
| 91 |
session_index = url_params.get('session_index')
|
| 92 |
if session_index: # Check if session_index is not None or empty
|
| 93 |
+
#print(session_index)
|
| 94 |
bot_message = f"""
|
| 95 |
here your URL params:
|
| 96 |
{json.dumps(url_params, indent=4)}
|
|
|
|
| 113 |
""")
|
| 114 |
session_index = url_params.value.get('session_index')
|
| 115 |
if session_index: # Check if session_index is not None or empty
|
| 116 |
+
print("This is your session_index:" + session_index)
|
| 117 |
# Fetch personalized data
|
| 118 |
+
#personalized_data = fetch_personalized_data(session_index)
|
| 119 |
+
#print(personalized_data)
|
| 120 |
else:
|
| 121 |
print("Session index is missing.")
|
| 122 |
else:
|
| 123 |
print("There are no URL parameters available.")
|
| 124 |
time.sleep(1)
|
| 125 |
return session_index
|
|
|
|
| 126 |
|
| 127 |
session_index = get_session_index(url_params)
|
| 128 |
personalized_data = fetch_personalized_data(session_index)
|