Brasd99 commited on
Commit
8517ebc
1 Parent(s): 6b4e770
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -249,7 +249,6 @@ def add_players_table(elements, players):
249
  data.append(line)
250
  update_progress((i+1)/len(players[team_state]), f"Creating dump of {team_state}'s squad...")
251
 
252
- # Create the table
253
  table = Table(data)
254
  table.setStyle(style_table)
255
  elements.append(table)
@@ -272,12 +271,11 @@ def check_faces(elements, photos, players, face_det_tresh, face_dist_tresh):
272
  player_face = cv2_to_reportlab(player_face)
273
  tmp_arr.append(player_face)
274
  data.append(tmp_arr)
275
- update_progress((j+1)/len(faces), 'Comparing faces...')
276
- # Create the table
277
  table = Table(data)
278
  table.setStyle(style_table)
279
 
280
- # Add table to elements list
281
  elements.append(table)
282
 
283
  return elements
@@ -323,30 +321,22 @@ def process(token, afl_link, face_dist_tresh, face_det_tresh):
323
 
324
  return pdf_bytes
325
 
326
-
327
-
328
  st.set_page_config(page_title='New App Name')
329
  st.title("My Awesome App")
330
 
331
- # Add a logo to the sidebar
332
- logo_url = "https://example.com/logo.png" # URL or local file path of your logo image
333
  st.sidebar.image(logo_url, width=100)
334
 
335
- # Add a description in the sidebar
336
  app_description = "This is a description of my app."
337
  st.sidebar.write(app_description)
338
 
339
- # Get the user input
340
  access_token = st.text_input("Your VK API access token")
341
 
342
- # Define the description and hyperlink
343
  description = "You can obtain your token from"
344
  link = "https://vkhost.github.io/"
345
 
346
- # Create the Markdown string with the hyperlink
347
  markdown_str = f"{description}: [{link}]({link})"
348
 
349
- # Display the description with the hyperlink
350
  st.markdown(markdown_str)
351
 
352
  afl_url = st.text_input("AFL url")
 
249
  data.append(line)
250
  update_progress((i+1)/len(players[team_state]), f"Creating dump of {team_state}'s squad...")
251
 
 
252
  table = Table(data)
253
  table.setStyle(style_table)
254
  elements.append(table)
 
271
  player_face = cv2_to_reportlab(player_face)
272
  tmp_arr.append(player_face)
273
  data.append(tmp_arr)
274
+ update_progress((j+1)/len(faces), f'[{i + 1}/{len(photos)}] Comparing faces...')
275
+
276
  table = Table(data)
277
  table.setStyle(style_table)
278
 
 
279
  elements.append(table)
280
 
281
  return elements
 
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
 
 
335
  description = "You can obtain your token from"
336
  link = "https://vkhost.github.io/"
337
 
 
338
  markdown_str = f"{description}: [{link}]({link})"
339
 
 
340
  st.markdown(markdown_str)
341
 
342
  afl_url = st.text_input("AFL url")