Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,16 +101,16 @@ type `read query`
|
|
| 101 |
time.sleep(1)
|
| 102 |
return history
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
|
| 115 |
''' def bot(history, url_params):
|
| 116 |
global session_index
|
|
|
|
| 101 |
time.sleep(1)
|
| 102 |
return history
|
| 103 |
|
| 104 |
+
# get url params out of JavaScript function as variables and pass the session_index to fetch_personalized_data() function
|
| 105 |
+
def session (session_index):
|
| 106 |
+
bot_message = f"""
|
| 107 |
+
here your session ID:
|
| 108 |
+
{json.dumps(session_index, indent=4)}
|
| 109 |
+
"""
|
| 110 |
+
return bot_message
|
| 111 |
+
|
| 112 |
+
bot_message = session(session_index)
|
| 113 |
+
print(bot_message)
|
| 114 |
|
| 115 |
''' def bot(history, url_params):
|
| 116 |
global session_index
|