Athspi commited on
Commit
61acb23
·
verified ·
1 Parent(s): 11a758f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -13
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 ai find user ask about remove person or animal like
51
- Remove hair from person
52
- Remove mouth form person
53
- remove sunglasses when worn
54
- delete phone" (when in hand
55
- remove eyes
56
- Remove watermark test thet person body
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,