Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,19 +47,13 @@ def is_prohibited_request(uploaded_file, object_type):
|
|
47 |
|
48 |
generate_content_config = types.GenerateContentConfig(
|
49 |
system_instruction=[
|
50 |
-
types.Part.from_text(text="""Your
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
"say no"
|
58 |
-
remove background
|
59 |
-
Remove person
|
60 |
-
Remove animal
|
61 |
-
remove sunglasses" (when on table)
|
62 |
-
say yes or no """)
|
63 |
],
|
64 |
temperature=0.0,
|
65 |
max_output_tokens=1,
|
|
|
47 |
|
48 |
generate_content_config = types.GenerateContentConfig(
|
49 |
system_instruction=[
|
50 |
+
types.Part.from_text(text="""Your AI should determine whether the user is asking to remove a person or an animal.
|
51 |
+
|
52 |
+
If the user requests removal of a person or an animal (e.g., "Remove person," "Remove animal"), respond with "Yes."
|
53 |
+
|
54 |
+
If the request involves removing specific objects or features from a person (e.g., "Remove hair from person," "Remove mouth from person," "Remove sunglasses when worn," "Remove watermark on a person's body"), respond with "No."
|
55 |
+
|
56 |
+
If the request is about removing objects that are not part of a person or animal (e.g., "Remove background," "Remove sunglasses on a table," "Delete phone when in hand"), respond with "No." """)
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
],
|
58 |
temperature=0.0,
|
59 |
max_output_tokens=1,
|