Update app.py
Browse files
app.py
CHANGED
|
@@ -127,14 +127,14 @@ def main():
|
|
| 127 |
handle_userinput(user_question)
|
| 128 |
|
| 129 |
with st.sidebar:
|
| 130 |
-
openai_key = st.text_input("
|
| 131 |
if openai_key:
|
| 132 |
os.environ["OPENAI_API_KEY"] = openai_key
|
| 133 |
|
| 134 |
-
st.subheader("
|
| 135 |
docs = st.file_uploader(
|
| 136 |
-
"Upload your PDFs here and click on 'Process'", accept_multiple_files=True)
|
| 137 |
-
if st.button("
|
| 138 |
with st.spinner("Processing"):
|
| 139 |
# get pdf text
|
| 140 |
doc_list = []
|
|
|
|
| 127 |
handle_userinput(user_question)
|
| 128 |
|
| 129 |
with st.sidebar:
|
| 130 |
+
openai_key = st.text_input("OpenAI API 키를 입력해주세요 (ex -> sk-...)")
|
| 131 |
if openai_key:
|
| 132 |
os.environ["OPENAI_API_KEY"] = openai_key
|
| 133 |
|
| 134 |
+
st.subheader("사용할 문서")
|
| 135 |
docs = st.file_uploader(
|
| 136 |
+
"Upload your PDFs here and click on 'Process'", label="파일 찾아보기", accept_multiple_files=True)
|
| 137 |
+
if st.button("실행"):
|
| 138 |
with st.spinner("Processing"):
|
| 139 |
# get pdf text
|
| 140 |
doc_list = []
|