Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,15 @@ from document import Document
|
|
18 |
from BartSE import BARTAutoEncoder
|
19 |
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
def save_uploaded_file(uploaded_file):
|
22 |
file_path = os.path.join("./uploads", uploaded_file.name)
|
23 |
os.makedirs("./uploads", exist_ok=True) # Create 'uploads' directory if it doesn't exist
|
@@ -27,7 +36,7 @@ def save_uploaded_file(uploaded_file):
|
|
27 |
|
28 |
st.title('Paper2Slides')
|
29 |
|
30 |
-
st.subheader('Upload paper in
|
31 |
|
32 |
col1, col2 = st.columns([3, 1])
|
33 |
with col1:
|
|
|
18 |
from BartSE import BARTAutoEncoder
|
19 |
|
20 |
|
21 |
+
html_input = st.text_area("Enter your HTML content here:", height=200)
|
22 |
+
|
23 |
+
range_values = st.slider(
|
24 |
+
'Select a range of slide numbers',
|
25 |
+
min_value=0,
|
26 |
+
max_value=100,
|
27 |
+
value=(0, 25)
|
28 |
+
)
|
29 |
+
|
30 |
def save_uploaded_file(uploaded_file):
|
31 |
file_path = os.path.join("./uploads", uploaded_file.name)
|
32 |
os.makedirs("./uploads", exist_ok=True) # Create 'uploads' directory if it doesn't exist
|
|
|
36 |
|
37 |
st.title('Paper2Slides')
|
38 |
|
39 |
+
st.subheader('Upload paper in TEI.xml format')
|
40 |
|
41 |
col1, col2 = st.columns([3, 1])
|
42 |
with col1:
|