Spaces:
Running
Running
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
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",
|
79 |
|
80 |
# Decode blob data if necessary
|
81 |
if is_blob_data(image):
|
82 |
image = decode_blob_data(image)
|
83 |
|
84 |
metadata = {
|
85 |
-
"name":
|
86 |
-
"email":
|
87 |
-
"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)
|