Spaces:
Sleeping
Sleeping
firqaaa commited on
Commit ·
99f2f2f
1
Parent(s): 6a2bc28
add app.py
Browse files22 unmodified lines23242526272829200 unmodified lines23023123223323423523623723823922 unmodified linesnltk.download('punkt')os.environ['OPENAI_API_KEY'] = "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"Entrez.email = "firqaaa@gmail.com"Entrez.api_key = "3d7a71231fe7f2d2bd7599e022535199a908"200 unmodified linesmime='text/csv')except Exception as e:if e == json.JSONDecodeError:st.write("Sorry, we are experiencing difficulties in extracting the information. Please try again with different context length.")# st.write(e)else:st.write("Sorry, we are experiencing difficulties in extracting the information. Please ensure that you input an uncorrupted file.")# move_file(pdf, "./unprocessed")22 unmodified lines23242526272829200 unmodified lines23023123223323423523623722 unmodified linesnltk.download('punkt')os.environ['OPENAI_API_KEY'] = "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"Entrez.email = "firqaaa@gmail.com"Entrez.api_key = "3d7a71231fe7f2d2bd7599e022535199a908"200 unmodified linesmime='text/csv')except json.JSONDecodeError:st.write("Sorry, we are experiencing difficulties in extracting the information. Please try again with different context length.")# st.write(e)except:st.write("Sorry, we are experiencing difficulties in extracting the information. Please ensure that you input an uncorrupted file.")
app.py+5-7