yanze akhaliq HF staff commited on
Commit
9cc8494
1 Parent(s): 9084b6a

add developers local gradio demo section (#6)

Browse files

- add developers local gradio demo section (9f287db6dfb5250db7cf263d8d5ebbf5b5ce9fac)


Co-authored-by: AK <akhaliq@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -178,10 +178,17 @@ If PuLID is helpful, please help to ⭐ the <a href='https://github.com/ToTheBeg
178
  If you have any questions or feedbacks, feel free to open a discussion or contact <b>wuyanze123@gmail.com</b>.
179
  """ # noqa E501
180
 
 
 
 
 
181
 
182
  def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_available() else "cpu",
183
  offload: bool = False):
184
  with gr.Blocks() as demo:
 
 
 
185
  gr.Markdown(_HEADER_)
186
 
187
  with gr.Row():
 
178
  If you have any questions or feedbacks, feel free to open a discussion or contact <b>wuyanze123@gmail.com</b>.
179
  """ # noqa E501
180
 
181
+ _DEV_DES = '''
182
+ * Please refer to our repo for instructions on running gradio demo [locally](https://github.com/ToTheBeginning/PuLID?tab=readme-ov-file#local-gradio-demo)
183
+ '''
184
+
185
 
186
  def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_available() else "cpu",
187
  offload: bool = False):
188
  with gr.Blocks() as demo:
189
+ with gr.Accordion("For Developers", open=False):
190
+ gr.Markdown(_DEV_DES)
191
+
192
  gr.Markdown(_HEADER_)
193
 
194
  with gr.Row():