aiqcamp commited on
Commit
f127a22
โ€ข
1 Parent(s): d0017e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -275,7 +275,7 @@ def generate_caption(image, model_name='gokaygokay/Florence-2-Flux-Large'):
275
  def process_and_save_image(height, width, steps, scales, prompt, seed):
276
  is_safe, filtered_prompt = filter_prompt(prompt)
277
  if not is_safe:
278
- gr.Warning("๋ถ€์ ์ ˆํ•œ ๋‚ด์šฉ์ด ํฌํ•จ๋œ ํ”„๋กฌํ”„ํŠธ์ž…๋‹ˆ๋‹ค.")
279
  return None, load_gallery()
280
 
281
  with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16), timer("inference"):
 
275
  def process_and_save_image(height, width, steps, scales, prompt, seed):
276
  is_safe, filtered_prompt = filter_prompt(prompt)
277
  if not is_safe:
278
+ gr.Warning("The prompt contains inappropriate content.")
279
  return None, load_gallery()
280
 
281
  with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16), timer("inference"):