Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,6 +57,7 @@ js = """
|
|
| 57 |
function() {
|
| 58 |
const params = new URLSearchParams(window.location.search);
|
| 59 |
const url_params = Object.fromEntries(params);
|
|
|
|
| 60 |
return url_params;
|
| 61 |
}
|
| 62 |
"""
|
|
@@ -79,7 +80,7 @@ with gr.Blocks(js = js) as demo:
|
|
| 79 |
|
| 80 |
session_index = 'eb3636167d3a63fbeee32934610e5b2f'
|
| 81 |
personalized_data = fetch_personalized_data(session_index)
|
| 82 |
-
|
| 83 |
chatbot = gr.Chatbot()
|
| 84 |
#chatbot = gr.Chatbot().style(height=500)
|
| 85 |
msg = gr.Textbox()
|
|
|
|
| 57 |
function() {
|
| 58 |
const params = new URLSearchParams(window.location.search);
|
| 59 |
const url_params = Object.fromEntries(params);
|
| 60 |
+
console.log("The console is working!);
|
| 61 |
return url_params;
|
| 62 |
}
|
| 63 |
"""
|
|
|
|
| 80 |
|
| 81 |
session_index = 'eb3636167d3a63fbeee32934610e5b2f'
|
| 82 |
personalized_data = fetch_personalized_data(session_index)
|
| 83 |
+
url_params = gr.JSON({}, visible=False, label="URL Params")
|
| 84 |
chatbot = gr.Chatbot()
|
| 85 |
#chatbot = gr.Chatbot().style(height=500)
|
| 86 |
msg = gr.Textbox()
|