Spaces:
No application file
No application file
cookiemonster69
commited on
Commit
•
45b0863
1
Parent(s):
521920d
Update test.py
Browse files
test.py
CHANGED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import streamlit as st
|
3 |
+
from utils import *
|
4 |
+
def main():
|
5 |
+
st.set_page_config(page_title='PDF Summarizer')
|
6 |
+
st.title('PDF Summarizer app')
|
7 |
+
st.write("Summarize your PDF file in just a few seconds")
|
8 |
+
st.divider()
|
9 |
+
|
10 |
+
pdf = st.file_uploader('Upload your PDF file', type='pdf')
|
11 |
+
|
12 |
+
submit=st.button('Generate Summary')
|
13 |
+
|
14 |
+
api_key = os.environ.get("OPENAI_API_KEY")
|
15 |
+
|
16 |
+
if __name__ == '__main__':
|
17 |
+
main()
|