Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ topics = """
|
|
| 124 |
"""
|
| 125 |
|
| 126 |
# Setup the Gradio Blocks interface with custom layout components
|
| 127 |
-
with gr.Blocks(theme=
|
| 128 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 129 |
with gr.Row():
|
| 130 |
with gr.Column():
|
|
@@ -136,6 +136,21 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 136 |
submit_button = gr.Button("Submit")
|
| 137 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
# Launch the Gradio app to allow user interaction
|
| 141 |
demo.launch(share = True)
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
"""
|
| 125 |
|
| 126 |
# Setup the Gradio Blocks interface with custom layout components
|
| 127 |
+
with gr.Blocks(theme= slay ) as demo:
|
| 128 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 129 |
with gr.Row():
|
| 130 |
with gr.Column():
|
|
|
|
| 136 |
submit_button = gr.Button("Submit")
|
| 137 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 138 |
|
| 139 |
+
slay = gr.themes.Monochrome(
|
| 140 |
+
primary_hue = "blue", secondary_hue = "gray"
|
| 141 |
+
).set(
|
| 142 |
+
background_fill_primary = 'primary_200',
|
| 143 |
+
background_fill_primary_dark = 'primary_200',
|
| 144 |
+
border_color_accent = 'secondary_200',
|
| 145 |
+
body_text_color = 'white'
|
| 146 |
+
|
| 147 |
+
)
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
|
| 152 |
# Launch the Gradio app to allow user interaction
|
| 153 |
demo.launch(share = True)
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
|