|
import os |
|
import streamlit as st |
|
import streamlit.components.v1 as components |
|
|
|
st.set_page_config(layout="wide") |
|
|
|
backend_url = os.getenv("backend", "http://139.196.83.164:11000/") |
|
|
|
iframe_html = """ |
|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<title>InternVL</title> |
|
<style> |
|
iframe { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
border: none; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<iframe src="{{backend_url}}"></iframe> |
|
</body> |
|
</html> |
|
""" |
|
iframe_html = f'<iframe src="http://139.196.83.164:11000/" width="100%" height="800"></iframe>' |
|
|
|
|
|
components.html(iframe_html, height=800) |