Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,9 @@ iframe = '''
|
|
| 115 |
<iframe style="border-radius:12px" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vRroWVBXq1Fa0x7SvRTzSBMHFIp59VtVEWCxeg8kWJU4ll1_o4yzBnt4ArT88s7g4TQrMKEXZUQAeHF/pubhtml?widget=true&headers=false" width="100%" height="352" frameBorder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 116 |
'''
|
| 117 |
|
| 118 |
-
|
|
|
|
|
|
|
| 119 |
|
| 120 |
|
| 121 |
# Define the welcome message and specific topics the chatbot can provide information about
|
|
@@ -159,6 +161,9 @@ topics = """
|
|
| 159 |
def display_iframe():
|
| 160 |
return iframe
|
| 161 |
|
|
|
|
|
|
|
|
|
|
| 162 |
theme = gr.themes.Monochrome(
|
| 163 |
primary_hue="pink",
|
| 164 |
secondary_hue="green",
|
|
@@ -182,6 +187,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 182 |
with gr.Row():
|
| 183 |
gr.Markdown(topics) # Show the topics on the left side
|
| 184 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
|
|
|
| 185 |
with gr.Row():
|
| 186 |
with gr.Column():
|
| 187 |
question = gr.Textbox(label="Your Request", placeholder="What would you like to talk about?")
|
|
|
|
| 115 |
<iframe style="border-radius:12px" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vRroWVBXq1Fa0x7SvRTzSBMHFIp59VtVEWCxeg8kWJU4ll1_o4yzBnt4ArT88s7g4TQrMKEXZUQAeHF/pubhtml?widget=true&headers=false" width="100%" height="352" frameBorder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 116 |
'''
|
| 117 |
|
| 118 |
+
iframe2 = '''
|
| 119 |
+
<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6wwxTePuIKYMqt6RCytB7X?utm_source=generator" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 120 |
+
'''
|
| 121 |
|
| 122 |
|
| 123 |
# Define the welcome message and specific topics the chatbot can provide information about
|
|
|
|
| 161 |
def display_iframe():
|
| 162 |
return iframe
|
| 163 |
|
| 164 |
+
def display_iframe2():
|
| 165 |
+
return iframe2
|
| 166 |
+
|
| 167 |
theme = gr.themes.Monochrome(
|
| 168 |
primary_hue="pink",
|
| 169 |
secondary_hue="green",
|
|
|
|
| 187 |
with gr.Row():
|
| 188 |
gr.Markdown(topics) # Show the topics on the left side
|
| 189 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
| 190 |
+
gr.HTML(display_iframe())
|
| 191 |
with gr.Row():
|
| 192 |
with gr.Column():
|
| 193 |
question = gr.Textbox(label="Your Request", placeholder="What would you like to talk about?")
|