Spaces:
Sleeping
Sleeping
from git import Repo | |
import streamlit as st | |
import os | |
if os.path.exists('./educrpg'): | |
pass | |
else: | |
Repo.clone_from(st.secrets['GIT_URL'],'./educrpg') | |
from educrpg.gaide import gaide | |
gaide(st.secrets['OPENAI_API_KEY'], st.secrets['QDRANT_API_KEY'], st.secrets['QDRANT_URL'], st.secrets['QDRANT_COLLECTION'], | |
st.secrets['GOOGLE_TYPE'], | |
st.secrets['GOOGLE_PROJECT_ID'], | |
st.secrets['GOOGLE_PRIVATE_KEY_ID'], | |
st.secrets['GOOGLE_PRIVATE_KEY'], | |
st.secrets['GOOGLE_CLIENT_EMAIL'], | |
st.secrets['GOOGLE_CLIENT_ID'], | |
st.secrets['GOOGLE_AUTH_URI'], | |
st.secrets['GOOGLE_TOKEN_URI'], | |
st.secrets['GOOGLE_AUTH_PROVIDER_X509_CERT_URL'], | |
st.secrets['GOOGLE_CLIENT_X509_CERT_URL'], | |
st.secrets['GOOGLE_UNIVERSE_DOMAIN'], | |
st.secrets['MISTRAL_API_KEY'], | |
st.secrets['HUGGINGFACE_API_KEY']) |