Spaces:
Running
Running
Commit
·
f70522c
1
Parent(s):
eaf0e00
Uploader in sidebar
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ os.environ["HUGGINGFACEHUB_API_TOKEN"] = st.secrets["hf_api_key"]
|
|
19 |
|
20 |
st.title('Document Q&A - Ask anything in your Document')
|
21 |
st.sidebar.subheader('Upload document')
|
22 |
-
uploaded_file = st.file_uploader("Upload File",type=['txt','pdf'])
|
23 |
# url2 = "https://github.com/fabiomatricardi/cdQnA/raw/main/KS-all-info_rev1.txt"
|
24 |
# res = requests.get(url2)
|
25 |
# with open("KS-all-info_rev1.txt", "w") as f:
|
|
|
19 |
|
20 |
st.title('Document Q&A - Ask anything in your Document')
|
21 |
st.sidebar.subheader('Upload document')
|
22 |
+
uploaded_file = st.sidebar.file_uploader("Upload File",type=['txt','pdf'])
|
23 |
# url2 = "https://github.com/fabiomatricardi/cdQnA/raw/main/KS-all-info_rev1.txt"
|
24 |
# res = requests.get(url2)
|
25 |
# with open("KS-all-info_rev1.txt", "w") as f:
|