Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -285,16 +285,16 @@ function createGradioAnimation() {
|
|
285 |
|
286 |
var gradioContainer = document.querySelector('.gradio-container');
|
287 |
gradioContainer.insertBefore(container, gradioContainer.firstChild);
|
288 |
-
|
289 |
-
return 'Animation created';
|
290 |
}
|
291 |
"""
|
292 |
|
293 |
# Gradio Application Interface with JS Animation
|
294 |
-
with gr.Blocks(js=js
|
295 |
gr.HTML("<h1 id='welcome-title'>🌟 Well-Being Companion</h1>")
|
296 |
-
createGradioAnimation() # Call the animation function upon load
|
297 |
|
|
|
|
|
|
|
298 |
with gr.Tab("Well-Being Chatbot"):
|
299 |
with gr.Row():
|
300 |
user_input = gr.Textbox(label="Please Enter Your Message Here", placeholder="Type your message here...", max_lines=3)
|
|
|
285 |
|
286 |
var gradioContainer = document.querySelector('.gradio-container');
|
287 |
gradioContainer.insertBefore(container, gradioContainer.firstChild);
|
|
|
|
|
288 |
}
|
289 |
"""
|
290 |
|
291 |
# Gradio Application Interface with JS Animation
|
292 |
+
with gr.Blocks(js=js) as app:
|
293 |
gr.HTML("<h1 id='welcome-title'>🌟 Well-Being Companion</h1>")
|
|
|
294 |
|
295 |
+
# Initialize the animation on load
|
296 |
+
createGradioAnimation() # This function will be defined in the JavaScript context
|
297 |
+
|
298 |
with gr.Tab("Well-Being Chatbot"):
|
299 |
with gr.Row():
|
300 |
user_input = gr.Textbox(label="Please Enter Your Message Here", placeholder="Type your message here...", max_lines=3)
|