Spaces:
Running
Running
add clear button
Browse files
app.py
CHANGED
@@ -26,6 +26,9 @@ def upload_blob(pdf_name, json_data, pdf_data):
|
|
26 |
|
27 |
st.write('Data and PDF have been successfully uploaded. The link to the chatbot for the potential candidates is the following: '+link)
|
28 |
|
|
|
|
|
|
|
29 |
|
30 |
|
31 |
def main():
|
@@ -73,7 +76,7 @@ def main():
|
|
73 |
pdf_data = uploaded_file.read()
|
74 |
|
75 |
upload_blob(pdf_name, json_data, pdf_data)
|
76 |
-
|
77 |
else:
|
78 |
st.write("Please fill out both fields and upload a PDF file.")
|
79 |
|
|
|
26 |
|
27 |
st.write('Data and PDF have been successfully uploaded. The link to the chatbot for the potential candidates is the following: '+link)
|
28 |
|
29 |
+
if st.button("Clear Inputs"):
|
30 |
+
streamlit_js_eval(js_expressions="parent.window.location.reload()")
|
31 |
+
|
32 |
|
33 |
|
34 |
def main():
|
|
|
76 |
pdf_data = uploaded_file.read()
|
77 |
|
78 |
upload_blob(pdf_name, json_data, pdf_data)
|
79 |
+
|
80 |
else:
|
81 |
st.write("Please fill out both fields and upload a PDF file.")
|
82 |
|