Try silencing the initialize_session warning
Browse files
app.py
CHANGED
|
@@ -561,7 +561,7 @@ theme = gr.themes.Default(
|
|
| 561 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js) as demo:
|
| 562 |
# Storing session hash in a state variable
|
| 563 |
session_uuid_state = gr.State(None)
|
| 564 |
-
|
| 565 |
with gr.Row():
|
| 566 |
sandbox_html = gr.HTML(
|
| 567 |
value=sandbox_html_template.format(
|
|
@@ -752,7 +752,7 @@ _Please note that we store the task logs by default so **do not write any person
|
|
| 752 |
).then(
|
| 753 |
fn=initialize_session,
|
| 754 |
js="() => localStorage.getItem('gradio-session-uuid') || (() => { const id = self.crypto.randomUUID(); localStorage.setItem('gradio-session-uuid', id); return id })()",
|
| 755 |
-
inputs=[is_interactive],
|
| 756 |
outputs=[sandbox_html, session_uuid_state],
|
| 757 |
)
|
| 758 |
|
|
|
|
| 561 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js) as demo:
|
| 562 |
# Storing session hash in a state variable
|
| 563 |
session_uuid_state = gr.State(None)
|
| 564 |
+
print("Starting the app!")
|
| 565 |
with gr.Row():
|
| 566 |
sandbox_html = gr.HTML(
|
| 567 |
value=sandbox_html_template.format(
|
|
|
|
| 752 |
).then(
|
| 753 |
fn=initialize_session,
|
| 754 |
js="() => localStorage.getItem('gradio-session-uuid') || (() => { const id = self.crypto.randomUUID(); localStorage.setItem('gradio-session-uuid', id); return id })()",
|
| 755 |
+
inputs=[is_interactive, session_uuid_state],
|
| 756 |
outputs=[sandbox_html, session_uuid_state],
|
| 757 |
)
|
| 758 |
|