Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from git import Repo
|
2 |
+
import streamlit as st
|
3 |
+
import os
|
4 |
+
|
5 |
+
if os.path.exists('./educrpg'):
|
6 |
+
pass
|
7 |
+
else:
|
8 |
+
Repo.clone_from(st.secrets['GIT_URL'],'./educrpg')
|
9 |
+
|
10 |
+
from educrpg.gaidelite import gaidelite
|
11 |
+
|
12 |
+
gaidelite(st.secrets['QDRANT_API_KEY'], st.secrets['QDRANT_URL'], st.secrets['QDRANT_COLLECTION'], st.secrets['HUGGINGFACE_API_KEY'])
|