kevinconka commited on
Commit
bd2bba7
·
1 Parent(s): 5604d24

Refactor variable names in flag_img_input function in app.py for consistency with function parameters, enhancing code clarity.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -75,16 +75,16 @@ def flag_img_input(
75
  subscribe: bool = False,
76
  ):
77
  """Wrapper for flagging"""
78
- logger.info("Flagging image - name: %s, email: %s, subscribe: %s", name_, email_, subscribe_)
79
 
80
  # Decode blob data if necessary
81
  if is_blob_data(image):
82
  image = decode_blob_data(image)
83
 
84
  metadata = {
85
- "name": name_,
86
- "email": email_,
87
- "subscribe": subscribe_,
88
  }
89
 
90
  hf_writer.flag([image], metadata=metadata)
 
75
  subscribe: bool = False,
76
  ):
77
  """Wrapper for flagging"""
78
+ logger.info("Flagging image - name: %s, email: %s, subscribe: %s", name, email, subscribe)
79
 
80
  # Decode blob data if necessary
81
  if is_blob_data(image):
82
  image = decode_blob_data(image)
83
 
84
  metadata = {
85
+ "name": name,
86
+ "email": email,
87
+ "subscribe": subscribe,
88
  }
89
 
90
  hf_writer.flag([image], metadata=metadata)