ariel79 commited on
Commit
38c29ee
·
verified ·
1 Parent(s): e634a4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -1
app.py CHANGED
@@ -141,11 +141,35 @@ topics = """
141
  - Fun Facts about AI
142
  - Examples of AI
143
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
 
 
145
  # Setup the Gradio Blocks interface with custom layout components
146
  with gr.Blocks(theme='abidlabs/dracula_revamped') as demo:
147
  gr.Image("Screenshot 2024-07-31 at 3.01.14 PM.png", show_label = False, show_share_button = False, show_download_button = False, scale=0, width=400)
148
- gr.Markdown(welcome_message) # Display the formatted welcome message
149
  with gr.Row():
150
  with gr.Column():
151
  gr.Markdown(topics) # Show the topics on the left side
 
141
  - Fun Facts about AI
142
  - Examples of AI
143
  """
144
+ # Create a Gradio HTML component
145
+ def display_iframe():
146
+ return iframe
147
+ def display_image():
148
+ return "https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdqMnkzcWpjbGhmM3hzcXp0MGpuaTF5djR4bjBxM3Biam5zbzNnMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/GxMnTi3hV3qaIgbgQL/giphy.gif"
149
+ #return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
150
+ theme = gr.themes.Monochrome(
151
+ primary_hue="amber", #okay this did NOT work lmaoo
152
+ secondary_hue="rose",
153
+ ).set(
154
+ background_fill_primary='#CBE9A2', # BACKGROUND
155
+ background_fill_primary_dark='#768550',
156
+ background_fill_secondary='#768550', # BUTTON HOVER
157
+ background_fill_secondary_dark='#99a381', #LOADING BAR
158
+ border_color_accent='#768550',
159
+ border_color_accent_dark='#768550',
160
+ border_color_accent_subdued='#768550',
161
+ border_color_primary='#03a9f4',
162
+ block_border_color='#b3e5fc',
163
+ button_primary_background_fill='#768550',
164
+ button_primary_background_fill_dark='#768550'
165
+ )
166
 
167
+ # Setup the Gradio Blocks interface with custom layout components
168
+ with gr.Blocks(theme=theme) as demo:
169
  # Setup the Gradio Blocks interface with custom layout components
170
  with gr.Blocks(theme='abidlabs/dracula_revamped') as demo:
171
  gr.Image("Screenshot 2024-07-31 at 3.01.14 PM.png", show_label = False, show_share_button = False, show_download_button = False, scale=0, width=400)
172
+ #gr.Markdown(welcome_message) # Display the formatted welcome message
173
  with gr.Row():
174
  with gr.Column():
175
  gr.Markdown(topics) # Show the topics on the left side