dogutcu commited on
Commit
4b9dd86
·
verified ·
1 Parent(s): 7562258

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -119,7 +119,7 @@ topics = """
119
  """
120
 
121
  # Define the HTML iframe content
122
- iframe = '''
123
  <div style="height:10px;"></div>
124
  <iframe style="border-radius:12px"
125
  src="https://open.spotify.com/embed/episode/1Emjgqf8PfwD42kvyKvtfW?utm_source=generator&theme=0"
@@ -132,12 +132,15 @@ iframe = '''
132
  allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
133
  '''
134
 
135
- def display_iframe():
136
- return iframe
 
 
137
 
138
  def display_image():
139
  return "https://huggingface.co/spaces/dogutcu/composting-how-tos/resolve/main/compbot.jpeg"
140
 
 
141
  theme = gr.themes.Base().set(
142
  background_fill_primary='#AFC9AD', # Light cyan background
143
  background_fill_primary_dark='#AFC9AD', # Dark teal background
@@ -159,7 +162,7 @@ with gr.Blocks(theme=theme) as demo:
159
  with gr.Row():
160
  with gr.Column():
161
  gr.Markdown(topics) # Show the topics on the left side
162
- gr.HTML(display_iframe()) # Embed the iframe on the left side
163
  with gr.Row():
164
  with gr.Column():
165
  question = gr.Textbox(label="Your question", placeholder="What would you like to know?")
 
119
  """
120
 
121
  # Define the HTML iframe content
122
+ podcast_iframe = '''
123
  <div style="height:10px;"></div>
124
  <iframe style="border-radius:12px"
125
  src="https://open.spotify.com/embed/episode/1Emjgqf8PfwD42kvyKvtfW?utm_source=generator&theme=0"
 
132
  allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
133
  '''
134
 
135
+ youtube_iframe = '''
136
+ <iframe width="560" height="315" src="https://www.youtube.com/embed/MryNKPPvFbk" frameborder="0"
137
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
138
+ '''
139
 
140
  def display_image():
141
  return "https://huggingface.co/spaces/dogutcu/composting-how-tos/resolve/main/compbot.jpeg"
142
 
143
+
144
  theme = gr.themes.Base().set(
145
  background_fill_primary='#AFC9AD', # Light cyan background
146
  background_fill_primary_dark='#AFC9AD', # Dark teal background
 
162
  with gr.Row():
163
  with gr.Column():
164
  gr.Markdown(topics) # Show the topics on the left side
165
+ gr.HTML(youtube_iframe()) # Embed the iframe on the left side
166
  with gr.Row():
167
  with gr.Column():
168
  question = gr.Textbox(label="Your question", placeholder="What would you like to know?")