Spaces:
Runtime error
Runtime error
Zwea Htet
commited on
Commit
•
79998a1
1
Parent(s):
557e9af
updated requirements.txt
Browse files- app.py +2 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -31,7 +31,8 @@ if api_key:
|
|
31 |
st.info("Success")
|
32 |
os.environ["OPENAI_API_KEY"] = api_key
|
33 |
openai.api_key = api_key
|
34 |
-
index
|
|
|
35 |
|
36 |
st.write("---")
|
37 |
if index:
|
|
|
31 |
st.info("Success")
|
32 |
os.environ["OPENAI_API_KEY"] = api_key
|
33 |
openai.api_key = api_key
|
34 |
+
with st.spinner("Initializing vector index ..."):
|
35 |
+
index = create_index(bloom)
|
36 |
|
37 |
st.write("---")
|
38 |
if index:
|
requirements.txt
CHANGED
@@ -7,6 +7,6 @@ langchain
|
|
7 |
openai
|
8 |
faiss-cpu
|
9 |
python-dotenv
|
10 |
-
streamlit
|
11 |
huggingface_hub
|
12 |
xformers
|
|
|
7 |
openai
|
8 |
faiss-cpu
|
9 |
python-dotenv
|
10 |
+
streamlit>=1.24.0
|
11 |
huggingface_hub
|
12 |
xformers
|