Spaces:
Running
Running
kausthubkannan17
commited on
Commit
·
b662d6c
1
Parent(s):
888a5cc
feat: added content to home page
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
from model import DrakeLM
|
3 |
from utilis import Processing
|
|
|
4 |
|
5 |
initial_page = "pages/upload_url.py"
|
6 |
|
|
|
7 |
@st.cache_resource()
|
8 |
def initialize_models():
|
9 |
processing = Processing(
|
@@ -37,7 +39,13 @@ def disable_sidebar(page_title: str):
|
|
37 |
|
38 |
def main():
|
39 |
disable_sidebar("Drake")
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
with st.spinner("Loading models..."):
|
43 |
processing, drake = initialize_models()
|
|
|
1 |
import streamlit as st
|
2 |
from model import DrakeLM
|
3 |
from utilis import Processing
|
4 |
+
import re
|
5 |
|
6 |
initial_page = "pages/upload_url.py"
|
7 |
|
8 |
+
|
9 |
@st.cache_resource()
|
10 |
def initialize_models():
|
11 |
processing = Processing(
|
|
|
39 |
|
40 |
def main():
|
41 |
disable_sidebar("Drake")
|
42 |
+
with open("README.md", "r") as f:
|
43 |
+
content = f.read()
|
44 |
+
|
45 |
+
content = re.sub(fr"{'---'}(.*?){'---'}", "", content, flags=re.DOTALL)
|
46 |
+
|
47 |
+
st.markdown(content, unsafe_allow_html=True)
|
48 |
+
st.divider()
|
49 |
|
50 |
with st.spinner("Loading models..."):
|
51 |
processing, drake = initialize_models()
|