Padlet / app.py
Jayahae's picture
Create app.py
7e4285f verified
raw
history blame contribute delete
560 Bytes
import gradio as gr
# Replace with your actual Padlet URL
padlet_url = "https://padlet.com/mirankim316/digital-literacy-and-english-education-spring-2024-2gmo48o5djxsjpqa"
# Create an iframe HTML string to embed the Padlet
padlet_embed_html = f"""
<iframe src="{padlet_url}" frameborder="0" style="width:100%; height:500px;"></iframe>
"""
def main():
# Create a Gradio block and add the HTML component
with gr.Blocks() as demo:
gr.HTML(padlet_embed_html)
# Launch the Gradio app
demo.launch()
if __name__ == "__main__":
main()