Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -587,6 +587,13 @@ footer {
|
|
587 |
display: flex;
|
588 |
flex-direction: column;
|
589 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
"""
|
591 |
|
592 |
# Gradio Interface Setup with improved UX
|
@@ -627,15 +634,14 @@ def chatbot_interface():
|
|
627 |
elem_id="welcome-title"
|
628 |
)
|
629 |
|
630 |
-
with gr.Row(
|
631 |
first_name = gr.Textbox(
|
632 |
label="Nickname",
|
633 |
-
placeholder="Enter your Nickname"
|
634 |
-
scale=1
|
635 |
)
|
636 |
|
637 |
-
with gr.Row(
|
638 |
-
submit_btn = gr.Button("Start Chatting", variant="primary"
|
639 |
|
640 |
response_message = gr.Markdown(elem_id="welcome-message")
|
641 |
|
@@ -664,4 +670,5 @@ def chatbot_interface():
|
|
664 |
# Launch the interface
|
665 |
if __name__ == "__main__":
|
666 |
# Launch the interface
|
667 |
-
chatbot_interface().launch(share=True, inbrowser=True, debug=True)
|
|
|
|
587 |
display: flex;
|
588 |
flex-direction: column;
|
589 |
}
|
590 |
+
|
591 |
+
/* Center form elements */
|
592 |
+
.form-row {
|
593 |
+
display: flex;
|
594 |
+
justify-content: center;
|
595 |
+
margin: 10px 0;
|
596 |
+
}
|
597 |
"""
|
598 |
|
599 |
# Gradio Interface Setup with improved UX
|
|
|
634 |
elem_id="welcome-title"
|
635 |
)
|
636 |
|
637 |
+
with gr.Row(elem_classes=["form-row"]):
|
638 |
first_name = gr.Textbox(
|
639 |
label="Nickname",
|
640 |
+
placeholder="Enter your Nickname"
|
|
|
641 |
)
|
642 |
|
643 |
+
with gr.Row(elem_classes=["form-row"]):
|
644 |
+
submit_btn = gr.Button("Start Chatting", variant="primary")
|
645 |
|
646 |
response_message = gr.Markdown(elem_id="welcome-message")
|
647 |
|
|
|
670 |
# Launch the interface
|
671 |
if __name__ == "__main__":
|
672 |
# Launch the interface
|
673 |
+
chatbot_interface().launch(share=True, inbrowser=True, debug=True)
|
674 |
+
|