Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,13 +41,12 @@ if paper:
|
|
41 |
tpages = len(list(extract_pages(name)))
|
42 |
print("total pages=", tpages)
|
43 |
pgs = [i+1 for i in range(tpages)]
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
submit_pages = st.form_submit_button(label = "Convert To Audio")
|
52 |
|
53 |
|
|
|
41 |
tpages = len(list(extract_pages(name)))
|
42 |
print("total pages=", tpages)
|
43 |
pgs = [i+1 for i in range(tpages)]
|
44 |
+
with st.form(key = "page_form"):
|
45 |
+
col1, col2 = st.columns(2)
|
46 |
+
with col1:
|
47 |
+
start_page = st.selectbox(label = "Start Page", options = pgs)
|
48 |
+
with col2:
|
49 |
+
end_page = st.selectbox(label = "End Page", options = pgs)
|
50 |
+
submit_pages = st.form_submit_button(label = "Convert To Audio")
|
|
|
51 |
|
52 |
|