Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,22 +134,22 @@ def display_iframe():
|
|
| 134 |
def display_image():
|
| 135 |
return "https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdqMnkzcWpjbGhmM3hzcXp0MGpuaTF5djR4bjBxM3Biam5zbzNnMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/GxMnTi3hV3qaIgbgQL/giphy.gif"
|
| 136 |
#return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
|
| 137 |
-
theme = gr.themes.Monochrome(
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
).set(
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
)
|
| 153 |
|
| 154 |
# Setup the Gradio Blocks interface with custom layout components
|
| 155 |
with gr.Blocks(theme=theme) as demo:
|
|
@@ -165,7 +165,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 165 |
submit_button = gr.Button("Submit")
|
| 166 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 167 |
|
| 168 |
-
gr.HTML(iframe)
|
| 169 |
|
| 170 |
|
| 171 |
# Launch the Gradio app to allow user interaction
|
|
|
|
| 134 |
def display_image():
|
| 135 |
return "https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdqMnkzcWpjbGhmM3hzcXp0MGpuaTF5djR4bjBxM3Biam5zbzNnMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/GxMnTi3hV3qaIgbgQL/giphy.gif"
|
| 136 |
#return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
|
| 137 |
+
# theme = gr.themes.Monochrome(
|
| 138 |
+
# primary_hue="amber", #okay this did NOT work lmaoo
|
| 139 |
+
# secondary_hue="rose",
|
| 140 |
+
# ).set(
|
| 141 |
+
# background_fill_primary='#CBE9A2', # BACKGROUND
|
| 142 |
+
# background_fill_primary_dark='#768550',
|
| 143 |
+
# background_fill_secondary='#768550', # BUTTON HOVER
|
| 144 |
+
# background_fill_secondary_dark='#99a381', #LOADING BAR
|
| 145 |
+
# border_color_accent='#768550',
|
| 146 |
+
# border_color_accent_dark='#768550',
|
| 147 |
+
# border_color_accent_subdued='#768550',
|
| 148 |
+
# border_color_primary='#03a9f4',
|
| 149 |
+
# block_border_color='#b3e5fc',
|
| 150 |
+
# button_primary_background_fill='#768550',
|
| 151 |
+
# button_primary_background_fill_dark='#768550'
|
| 152 |
+
# )
|
| 153 |
|
| 154 |
# Setup the Gradio Blocks interface with custom layout components
|
| 155 |
with gr.Blocks(theme=theme) as demo:
|
|
|
|
| 165 |
submit_button = gr.Button("Submit")
|
| 166 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 167 |
|
| 168 |
+
gr.HTML(iframe)
|
| 169 |
|
| 170 |
|
| 171 |
# Launch the Gradio app to allow user interaction
|