Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -682,7 +682,14 @@ css = """
|
|
682 |
}
|
683 |
|
684 |
"""
|
685 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
def submit_feedback(feedback, chatbot):
|
687 |
gr.Info("Thank you for your feedback.")
|
688 |
feedback_response = "User feedback: " + feedback
|
@@ -698,7 +705,7 @@ def handle_dislike(data: gr.LikeData):
|
|
698 |
return gr.update(visible=False), gr.update(visible=False)
|
699 |
|
700 |
|
701 |
-
with gr.Blocks(theme=
|
702 |
gr.Markdown("<CENTER><h2 style='font-size: 20px; font-family: Calibri;'>NewageNXT GPT</h2></CENTER>")
|
703 |
with gr.Row():
|
704 |
sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001", elem_classes="custom-button" , elem_id="button1")
|
|
|
682 |
}
|
683 |
|
684 |
"""
|
685 |
+
class MyCustomTheme(gr.themes.Base):
|
686 |
+
def __init__(self):
|
687 |
+
super().__init__()
|
688 |
+
self.primary_hue = "#3498db" # Set a custom primary color
|
689 |
+
self.border_radius = gr.themes.Radius.SMALL # Custom border radius
|
690 |
+
self.button_primary_text = "#ffffff" # Button text color
|
691 |
+
self.button_primary_bg = "#2980b9" # Button background color
|
692 |
+
|
693 |
def submit_feedback(feedback, chatbot):
|
694 |
gr.Info("Thank you for your feedback.")
|
695 |
feedback_response = "User feedback: " + feedback
|
|
|
705 |
return gr.update(visible=False), gr.update(visible=False)
|
706 |
|
707 |
|
708 |
+
with gr.Blocks(theme=MyCustomTheme(),css=css) as demo:
|
709 |
gr.Markdown("<CENTER><h2 style='font-size: 20px; font-family: Calibri;'>NewageNXT GPT</h2></CENTER>")
|
710 |
with gr.Row():
|
711 |
sample_button = gr.Button("What is the expected receiving date and the status of ASN24081900001", elem_classes="custom-button" , elem_id="button1")
|