Spaces:
Runtime error
Runtime error
Refactored main
Browse files- knowledge_gpt/main.py +0 -8
knowledge_gpt/main.py
CHANGED
@@ -48,14 +48,6 @@ def main():
|
|
48 |
|
49 |
sidebar()
|
50 |
|
51 |
-
openai_api_key = os.environ["OPENAI_API_KEY"]
|
52 |
-
|
53 |
-
if not openai_api_key:
|
54 |
-
st.warning(
|
55 |
-
"Enter your OpenAI API key in the sidebar. You can get a key at"
|
56 |
-
" https://platform.openai.com/account/api-keys."
|
57 |
-
)
|
58 |
-
|
59 |
uploaded_file = st.file_uploader(
|
60 |
"Upload a pdf, docx, or txt file",
|
61 |
type=["pdf", "docx", "txt"],
|
|
|
48 |
|
49 |
sidebar()
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
uploaded_file = st.file_uploader(
|
52 |
"Upload a pdf, docx, or txt file",
|
53 |
type=["pdf", "docx", "txt"],
|