Brasd99 commited on
Commit
a1211da
1 Parent(s): 8517ebc

More flexible sliders

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -321,14 +321,9 @@ def process(token, afl_link, face_dist_tresh, face_det_tresh):
321
 
322
  return pdf_bytes
323
 
324
- st.set_page_config(page_title='New App Name')
325
- st.title("My Awesome App")
326
-
327
- logo_url = "https://example.com/logo.png"
328
- st.sidebar.image(logo_url, width=100)
329
-
330
- app_description = "This is a description of my app."
331
- st.sidebar.write(app_description)
332
 
333
  access_token = st.text_input("Your VK API access token")
334
 
@@ -345,8 +340,8 @@ link = "https://afl.ru/football/afl-moscow-8x8/afl-cup-krasnaya-presnya-3097/mat
345
  markdown_str = f"{description}: [{link}]({link})"
346
  st.markdown(markdown_str)
347
 
348
- face_det_tresh = st.slider('Select a value:', 0.0, 1.0, FACE_DET_TRESH, 0.1)
349
- face_dist_tresh = st.slider('Select a value:', 0.0, 1.0, FACE_DIST_TRESH, 0.1)
350
 
351
  button_clicked = st.button("Process")
352
 
 
321
 
322
  return pdf_bytes
323
 
324
+ st.set_page_config(page_title=APP_NAME)
325
+ st.title(APP_NAME)
326
+ st.write(APP_DESCRIPTION)
 
 
 
 
 
327
 
328
  access_token = st.text_input("Your VK API access token")
329
 
 
340
  markdown_str = f"{description}: [{link}]({link})"
341
  st.markdown(markdown_str)
342
 
343
+ face_det_tresh = st.slider('face_det_tresh:', 0.0, 1.0, FACE_DET_TRESH, 0.01, help='Adjust the threshold value for face detection.')
344
+ face_dist_tresh = st.slider('face_dist_tresh:', 0.0, 1.0, FACE_DIST_TRESH, 0.01, help='Adjust the threshold to determine the minimum acceptable distance between faces.')
345
 
346
  button_clicked = st.button("Process")
347