Spaces:
Build error
Build error
niro commited on
Commit ·
f271ccd
1
Parent(s): b516cf5
pushing to hugging face
Browse files- .streamlit/secrets.toml +8 -0
- README.md +1 -1
- main.py +4 -3
.streamlit/secrets.toml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#supabase_url = "https://lalalala.supabase.co"
|
| 2 |
+
supabase_url = 'https://ktexmliefragugupzmqw.supabase.co'
|
| 3 |
+
#supabase_service_key = "lalalala"
|
| 4 |
+
supabase_service_key = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt0ZXhtbGllZnJhZ3VndXB6bXF3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODUyNjg1MjcsImV4cCI6MjAwMDg0NDUyN30.7DBDCcqelS0GNojPqv0zuvCT5vs5x2Codxyr5cDPZvU'
|
| 5 |
+
openai_api_key = "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"
|
| 6 |
+
anthropic_api_key = ""
|
| 7 |
+
self_hosted = "true"
|
| 8 |
+
usage_limit = 1000
|
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: purple
|
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.19.0
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
| 10 |
python_version: 3.9
|
| 11 |
---
|
|
|
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.19.0
|
| 8 |
+
app_file: main.py
|
| 9 |
pinned: false
|
| 10 |
python_version: 3.9
|
| 11 |
---
|
main.py
CHANGED
|
@@ -29,14 +29,14 @@ if anthropic_api_key:
|
|
| 29 |
|
| 30 |
# Set the theme
|
| 31 |
st.set_page_config(
|
| 32 |
-
page_title="
|
| 33 |
layout="wide",
|
| 34 |
initial_sidebar_state="expanded",
|
| 35 |
)
|
| 36 |
|
| 37 |
|
| 38 |
-
st.title("🧠
|
| 39 |
-
st.markdown("
|
| 40 |
if self_hosted == "false":
|
| 41 |
st.markdown('**📢 Note: In the public demo, access to functionality is restricted. You can only use the GPT-3.5-turbo model and upload files up to 1Mb. To use more models and upload larger files, consider self-hosting Quivr.**')
|
| 42 |
|
|
@@ -76,6 +76,7 @@ st.markdown("---\n\n")
|
|
| 76 |
|
| 77 |
if user_choice == 'Add Knowledge':
|
| 78 |
# Display chunk size and overlap selection only when adding knowledge
|
|
|
|
| 79 |
st.sidebar.title("Configuration")
|
| 80 |
st.sidebar.markdown(
|
| 81 |
"Choose your chunk size and overlap for adding knowledge.")
|
|
|
|
| 29 |
|
| 30 |
# Set the theme
|
| 31 |
st.set_page_config(
|
| 32 |
+
page_title="VantiGPT",
|
| 33 |
layout="wide",
|
| 34 |
initial_sidebar_state="expanded",
|
| 35 |
)
|
| 36 |
|
| 37 |
|
| 38 |
+
st.title("🧠 VantiGPT - Your second brain 🧠")
|
| 39 |
+
st.markdown("ask your data anything.")
|
| 40 |
if self_hosted == "false":
|
| 41 |
st.markdown('**📢 Note: In the public demo, access to functionality is restricted. You can only use the GPT-3.5-turbo model and upload files up to 1Mb. To use more models and upload larger files, consider self-hosting Quivr.**')
|
| 42 |
|
|
|
|
| 76 |
|
| 77 |
if user_choice == 'Add Knowledge':
|
| 78 |
# Display chunk size and overlap selection only when adding knowledge
|
| 79 |
+
st.sidebar.image('assets/Images/Vanti - Main Logo@4x copy.png')
|
| 80 |
st.sidebar.title("Configuration")
|
| 81 |
st.sidebar.markdown(
|
| 82 |
"Choose your chunk size and overlap for adding knowledge.")
|