Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -286,14 +286,13 @@ function createGradioAnimation() {
|
|
| 286 |
var gradioContainer = document.querySelector('.gradio-container');
|
| 287 |
gradioContainer.insertBefore(container, gradioContainer.firstChild);
|
| 288 |
}
|
| 289 |
-
|
| 290 |
-
createGradioAnimation(); // Call the animation function upon load
|
| 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 |
-
|
| 297 |
with gr.Tab("Well-Being Chatbot"):
|
| 298 |
with gr.Row():
|
| 299 |
user_input = gr.Textbox(label="Please Enter Your Message Here", placeholder="Type your message here...", max_lines=3)
|
|
|
|
| 286 |
var gradioContainer = document.querySelector('.gradio-container');
|
| 287 |
gradioContainer.insertBefore(container, gradioContainer.firstChild);
|
| 288 |
}
|
| 289 |
+
createGradioAnimation(); // Automatically create the animation upon load
|
|
|
|
| 290 |
"""
|
| 291 |
|
| 292 |
# Gradio Application Interface with JS Animation
|
| 293 |
+
with gr.Blocks(js=js) as app:
|
| 294 |
+
gr.HTML("<h1 id='welcome-title'>🌟 Well-Being Companion</h1>") # Title for the app
|
| 295 |
+
|
| 296 |
with gr.Tab("Well-Being Chatbot"):
|
| 297 |
with gr.Row():
|
| 298 |
user_input = gr.Textbox(label="Please Enter Your Message Here", placeholder="Type your message here...", max_lines=3)
|