akhaliq HF Staff commited on
Commit
03d1a4f
·
verified ·
1 Parent(s): d599170

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ def generate_image_with_auth(prompt: str, profile: gr.OAuthProfile | None):
7
  Wrapper function that checks if user is logged in before generating image.
8
  """
9
  if profile is None:
10
- raise gr.Error("Please log in with Hugging Face to use this app.")
11
 
12
  # User is logged in, proceed with image generation
13
  return generate_image(prompt)
@@ -18,7 +18,7 @@ def create_ui():
18
  f"<div style='text-align: center; max-width: 700px; margin: 0 auto;'>"
19
  f"<h1>Tencent {MODEL_ID.split('/')[-1]}</h1>"
20
  f"<p>Generate images using Tencent's state-of-the-art model hosted by FAL AI.</p>"
21
- f"<p style='color: orange;'>⚠️ You must log in with Hugging Face to use this app.</p>"
22
  f"Built with <a href='https://huggingface.co/spaces/akhaliq/anycoder' target='_blank'>anycoder</a>"
23
  f"</div>"
24
  )
 
7
  Wrapper function that checks if user is logged in before generating image.
8
  """
9
  if profile is None:
10
+ raise gr.Error("Click Sign in with Hugging Face button to use this app for free")
11
 
12
  # User is logged in, proceed with image generation
13
  return generate_image(prompt)
 
18
  f"<div style='text-align: center; max-width: 700px; margin: 0 auto;'>"
19
  f"<h1>Tencent {MODEL_ID.split('/')[-1]}</h1>"
20
  f"<p>Generate images using Tencent's state-of-the-art model hosted by FAL AI.</p>"
21
+ f"<p style='color: orange;'>⚠️ You must Sign in with Hugging Face using the button to use this app.</p>"
22
  f"Built with <a href='https://huggingface.co/spaces/akhaliq/anycoder' target='_blank'>anycoder</a>"
23
  f"</div>"
24
  )