Update app.py
Browse files
app.py
CHANGED
|
@@ -110,14 +110,6 @@ def query_model(question):
|
|
| 110 |
response = generate_response(question, relevant_segment)
|
| 111 |
return response
|
| 112 |
|
| 113 |
-
# Define the HTML iframe content
|
| 114 |
-
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 |
-
iframe2 = '''
|
| 119 |
-
<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6wwxTePuIKYMqt6RCytB7X?utm_source=generator" width="100%" height="300" 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
|
|
@@ -171,7 +163,7 @@ theme = gr.themes.Default(
|
|
| 171 |
|
| 172 |
# Setup the Gradio Blocks interface with custom layout components
|
| 173 |
with gr.Blocks(theme=theme) as demo:
|
| 174 |
-
|
| 175 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 176 |
|
| 177 |
with gr.Row():
|
|
|
|
| 110 |
response = generate_response(question, relevant_segment)
|
| 111 |
return response
|
| 112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
|
| 115 |
# Define the welcome message and specific topics the chatbot can provide information about
|
|
|
|
| 163 |
|
| 164 |
# Setup the Gradio Blocks interface with custom layout components
|
| 165 |
with gr.Blocks(theme=theme) as demo:
|
| 166 |
+
|
| 167 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 168 |
|
| 169 |
with gr.Row():
|