Update app2.py
Browse files
app2.py
CHANGED
@@ -1927,7 +1927,7 @@ elif feature == "Document Analysis":
|
|
1927 |
st.write('''upload the file and it will generate analysis of that document.''')
|
1928 |
st.warning("Do not upload too big files as it might end up consuming all the tokens and the response generattion will take too much time")
|
1929 |
if 'precedents' not in st.session_state:
|
1930 |
-
|
1931 |
|
1932 |
if uploaded_file and st.button("Analyze Document"):
|
1933 |
with st.spinner("Analyzing document and gathering additional information..."):
|
|
|
1927 |
st.write('''upload the file and it will generate analysis of that document.''')
|
1928 |
st.warning("Do not upload too big files as it might end up consuming all the tokens and the response generattion will take too much time")
|
1929 |
if 'precedents' not in st.session_state:
|
1930 |
+
uploaded_file = st.file_uploader("Upload a legal document (PDF, DOCX, or TXT)", type=["pdf", "docx", "txt"])
|
1931 |
|
1932 |
if uploaded_file and st.button("Analyze Document"):
|
1933 |
with st.spinner("Analyzing document and gathering additional information..."):
|