Spaces:
Sleeping
Sleeping
File size: 775 Bytes
17d8532 a13e6ac 17d8532 8ee0cfb 17d8532 de49141 17d8532 85274fc 9156c68 9751389 9dbff03 |
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 |
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']) |