Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def query_model(question):
|
|
| 107 |
return response
|
| 108 |
|
| 109 |
# Define the HTML iframe content
|
| 110 |
-
|
| 111 |
<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="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 112 |
'''
|
| 113 |
|
|
@@ -153,7 +153,10 @@ topics = """
|
|
| 153 |
- Support Resources
|
| 154 |
|
| 155 |
"""
|
| 156 |
-
|
|
|
|
|
|
|
|
|
|
| 157 |
# Setup the Gradio Blocks interface with custom layout components
|
| 158 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
| 159 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
|
|
|
| 107 |
return response
|
| 108 |
|
| 109 |
# Define the HTML iframe content
|
| 110 |
+
iframe = '''
|
| 111 |
<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="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 112 |
'''
|
| 113 |
|
|
|
|
| 153 |
- Support Resources
|
| 154 |
|
| 155 |
"""
|
| 156 |
+
# Create a Gradio HTML component
|
| 157 |
+
def display_iframe():
|
| 158 |
+
return iframe
|
| 159 |
+
|
| 160 |
# Setup the Gradio Blocks interface with custom layout components
|
| 161 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
| 162 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|