Spaces:
Sleeping
Sleeping
import streamlit as st | |
from git import Repo | |
import os | |
st.set_page_config( | |
page_title="CognitoAI", | |
page_icon="π§", | |
layout="wide", | |
initial_sidebar_state="expanded", | |
) | |
hide_st_style = """ | |
<style> | |
MainMenu {visibility: hidden;} | |
footer {visibility: hidden;} | |
header {visibility: hidden;} | |
img { | |
border-radius: 1000px !important; | |
} | |
</style> | |
""" | |
st.markdown(hide_st_style, unsafe_allow_html=True) | |
if not os.path.exists('./ConversationalAI'): | |
gitsecret = st.secrets["git_secret"] | |
Repo.clone_from(f"https://DataRaptor:{gitsecret}@github.com/DataRaptor/ConversationalAI.git", './ConversationalAI') | |
from ConversationalAI import app_viewport | |
app_viewport() | |