Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,6 @@ type `read query`
|
|
| 42 |
global session_index
|
| 43 |
if "read query" in history[-1][0]:
|
| 44 |
session_index = url_params.get('session_index')
|
| 45 |
-
personalized_data = fetch_personalized_data(session_index)
|
| 46 |
bot_message = f"""
|
| 47 |
here your URL params:
|
| 48 |
{json.dumps(url_params, indent=4)}
|
|
@@ -131,7 +130,8 @@ def fetch_personalized_data(session_index):
|
|
| 131 |
return personalized_result
|
| 132 |
|
| 133 |
# Call the function to fetch data as JSON
|
| 134 |
-
personalized_data = fetch_personalized_data()
|
|
|
|
| 135 |
|
| 136 |
# Print or use the json_result variable as needed
|
| 137 |
print(personalized_data)
|
|
|
|
| 42 |
global session_index
|
| 43 |
if "read query" in history[-1][0]:
|
| 44 |
session_index = url_params.get('session_index')
|
|
|
|
| 45 |
bot_message = f"""
|
| 46 |
here your URL params:
|
| 47 |
{json.dumps(url_params, indent=4)}
|
|
|
|
| 130 |
return personalized_result
|
| 131 |
|
| 132 |
# Call the function to fetch data as JSON
|
| 133 |
+
personalized_data = fetch_personalized_data(get_window_session_index)
|
| 134 |
+
#personalized_data = fetch_personalized_data()
|
| 135 |
|
| 136 |
# Print or use the json_result variable as needed
|
| 137 |
print(personalized_data)
|