File size: 753 Bytes
11433ab
 
 
5dc0c70
11433ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5dc0c70
11433ab
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import streamlit as st
from git import Repo
import os
import sys

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')


print(sys.version_info)
from ConversationalAI import app_viewport
app_viewport()