User1342 commited on
Commit
8f8d5b4
·
1 Parent(s): 66a6cf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -225,7 +225,7 @@ def block_users(client, threshold, dataset):
225
  :return: The number of blocked users.
226
  '''
227
  num_users_blocked = 0
228
-
229
  print("Testing dropdown value {}".format(dropdown.value))
230
 
231
  for filename in os.listdir("users"):
@@ -378,6 +378,7 @@ def get_target_website():
378
 
379
  # The main chunk of code that uses Gradio blocks to create the UI
380
  html_button = None
 
381
  with block:
382
  gr.HTML('''
383
  <meta name="viewport" content="width=device-width, initial-scale=1">
 
225
  :return: The number of blocked users.
226
  '''
227
  num_users_blocked = 0
228
+ global dropdown
229
  print("Testing dropdown value {}".format(dropdown.value))
230
 
231
  for filename in os.listdir("users"):
 
378
 
379
  # The main chunk of code that uses Gradio blocks to create the UI
380
  html_button = None
381
+ dropdown = None
382
  with block:
383
  gr.HTML('''
384
  <meta name="viewport" content="width=device-width, initial-scale=1">