nikigoli commited on
Commit
e480de7
1 Parent(s): ddb9d72

Removed "global" keyword

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -209,7 +209,6 @@ def get_ind_to_filter(text, word_ids, keywords):
209
 
210
  @spaces.GPU
211
  def count(image, text, prompts, state):
212
- global args
213
  print("state: " + str(state))
214
  keywords = "" # do not handle this for now
215
  # Handle no prompt case.
@@ -299,7 +298,6 @@ def count(image, text, prompts, state):
299
 
300
  @spaces.GPU
301
  def count_main(image, text, prompts):
302
- global args
303
  keywords = "" # do not handle this for now
304
  # Handle no prompt case.
305
  if prompts is None:
 
209
 
210
  @spaces.GPU
211
  def count(image, text, prompts, state):
 
212
  print("state: " + str(state))
213
  keywords = "" # do not handle this for now
214
  # Handle no prompt case.
 
298
 
299
  @spaces.GPU
300
  def count_main(image, text, prompts):
 
301
  keywords = "" # do not handle this for now
302
  # Handle no prompt case.
303
  if prompts is None: