JulienDelavande commited on
Commit
c6c0972
·
verified ·
1 Parent(s): a8d31b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -1,14 +1,14 @@
1
- from fastapi import FastAPI
2
- from fastapi.responses import RedirectResponse
3
-
4
- app = FastAPI()
5
-
6
- FRONTEND_URL = "https://optibet.delavande.fr/"
7
-
8
- @app.get("/{path:path}")
9
- async def redirect_to_frontend(path: str):
10
- return RedirectResponse(f"{FRONTEND_URL}/{path}")
11
-
12
- @app.get("/")
13
- async def home():
14
- return RedirectResponse(FRONTEND_URL)
 
1
+ import streamlit as st
2
+
3
+ FRONTEND_URL = "https://optibet.delavande.fr/"
4
+
5
+
6
+ st.set_page_config(page_title="Wrapper of optibet", layout="wide")
7
+
8
+ st.markdown(
9
+ f"""
10
+ <iframe src="{FRONTEND_URL}" width="100%" height="800" frameborder="0"></iframe>
11
+ """,
12
+ unsafe_allow_html=True,
13
+ )
14
+