Spaces:
Build error
Build error
Update app.py
Browse files1234567891011121314151617181920212223242526272829303132import streamlit as stst.set_page_config(layout="wide")# Custom CSS to make the iframe full screenst.markdown("""<style>.fullScreenFrame > iframe {position: absolute;width: 100%;height: 100%;border: none;}.main > div {padding: 0;height: 100vh;}</style>""",unsafe_allow_html=True,)# Embed the external Streamlit webpagest.markdown("""<div class="fullScreenFrame"><iframe src="https://internvl.opengvlab.com/"></iframe></div>""",unsafe_allow_html=True,)123456789101112131415161718192021222324252627282930313233343536from flask import Flask, render_template_stringapp = Flask(__name__)@app.route('/')def index():return render_template_string('''<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Embed Webpage</title><style>body, html {margin: 0;padding: 0;height: 100%;overflow: hidden;}iframe {position: absolute;width: 100%;height: 100%;border: none;}</style></head><body><iframe src="https://internvl.opengvlab.com/"></iframe></body></html>''')if __name__ == '__main__':app.run(debug=True)
app.py+33-29