Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,8 +102,8 @@ def query_model(question):
|
|
102 |
|
103 |
# Define the welcome message and specific topics the chatbot can provide information about
|
104 |
welcome_message = """
|
105 |
-
|
106 |
-
|
107 |
## Your AI-driven assistant for all composting-related queries.
|
108 |
"""
|
109 |
|
@@ -154,19 +154,9 @@ theme = gr.themes.Base().set(
|
|
154 |
button_primary_background_fill='#2a2a2a', # Primary button background color
|
155 |
button_primary_background_fill_dark='#2a2a2a' # Dark primary button background color
|
156 |
)
|
157 |
-
|
158 |
-
custom_css = """
|
159 |
-
<style>
|
160 |
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
|
161 |
-
body, .gr-text-input, .gr-textbox, .gr-markdown, .gr-html, .gr-button {
|
162 |
-
font-family: 'Roboto', sans-serif;
|
163 |
-
}
|
164 |
-
</style>
|
165 |
-
"""
|
166 |
|
167 |
# Setup the Gradio Blocks interface with custom layout components
|
168 |
with gr.Blocks(theme=theme) as demo:
|
169 |
-
gr.HTML(custom_css)
|
170 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
171 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
172 |
with gr.Row():
|
|
|
102 |
|
103 |
# Define the welcome message and specific topics the chatbot can provide information about
|
104 |
welcome_message = """
|
105 |
+
<span style="color:#8ace00; font-size:24px; font-weight:bold;">🌱Welcome to CompBot!</span>
|
106 |
+
""""""
|
107 |
## Your AI-driven assistant for all composting-related queries.
|
108 |
"""
|
109 |
|
|
|
154 |
button_primary_background_fill='#2a2a2a', # Primary button background color
|
155 |
button_primary_background_fill_dark='#2a2a2a' # Dark primary button background color
|
156 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
# Setup the Gradio Blocks interface with custom layout components
|
159 |
with gr.Blocks(theme=theme) as demo:
|
|
|
160 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
161 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
162 |
with gr.Row():
|