Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,10 +76,10 @@ with open('data/'+contracts_files[idx]) as f:
|
|
76 |
contract_data = f.read()
|
77 |
|
78 |
# upload contract
|
79 |
-
user_upload = st.sidebar.file_uploader('Please upload your own', type=['txt'],
|
80 |
-
accept_multiple_files=False)
|
81 |
-
|
82 |
|
|
|
83 |
# process upload
|
84 |
if user_upload is not None:
|
85 |
print(user_upload.name, user_upload.type)
|
@@ -114,7 +114,7 @@ if user_upload is not None:
|
|
114 |
|
115 |
else:
|
116 |
st.warning('Unknown uploaded file type, please try again')
|
117 |
-
|
118 |
results_drop = ['1', '2', '3']
|
119 |
number_results = st.sidebar.selectbox('Select number of results', results_drop)
|
120 |
|
|
|
76 |
contract_data = f.read()
|
77 |
|
78 |
# upload contract
|
79 |
+
#user_upload = st.sidebar.file_uploader('Please upload your own', type=['txt'],
|
80 |
+
# accept_multiple_files=False)
|
|
|
81 |
|
82 |
+
''''
|
83 |
# process upload
|
84 |
if user_upload is not None:
|
85 |
print(user_upload.name, user_upload.type)
|
|
|
114 |
|
115 |
else:
|
116 |
st.warning('Unknown uploaded file type, please try again')
|
117 |
+
''''
|
118 |
results_drop = ['1', '2', '3']
|
119 |
number_results = st.sidebar.selectbox('Select number of results', results_drop)
|
120 |
|