souljoy commited on
Commit
41bbaac
1 Parent(s): 412361a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -560,16 +560,16 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm"), a
560
  blink_every = gr.Checkbox(label="use eye blink", value=True, visible=False)
561
 
562
  with gr.Row():
563
- size_of_image = gr.Radio([256, 512], value=256, label='face model resolution', info="use 256/512 model?", visible=False) #
564
  preprocess_type = gr.Radio(['crop', 'full'], value='crop', label='How to handle the input image?', info="crop: resize the image; full: not resize")
565
 
566
  with gr.Row():
567
  is_still_mode = gr.Checkbox(label="Still mode (fewer head motion)", value=True)
568
- facerender = gr.Radio(['facevid2vid','pirender'], value='facevid2vid', label='facerender', info="which face render?", visible=False)
569
 
570
  with gr.Row():
571
- batch_size = gr.Slider(label="Batch size in generation", step=1, maximum=32, value=2)
572
- enhancer = gr.Checkbox(label="GFPGAN as Face enhancer", value=True, visible=False)
573
 
574
  submit = gr.Button('Start video chat now', elem_id="sadtalker_generate", variant='primary')
575
 
@@ -602,4 +602,4 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm"), a
602
  gr.Markdown("### <center>❗ Please do not generate content that could infringe upon the rights or cause harm to individuals or organizations.</center>")
603
  gr.Markdown("<center>💡 - How to use this app:After sending your questions to ChatGLM2, click “Chat now”, “Generate using Edge-TTS”, “Generate using FreeVC” and “Start video chat now” in turn.</center>")
604
 
605
- demo.queue().launch(show_error=True, debug=True)
 
560
  blink_every = gr.Checkbox(label="use eye blink", value=True, visible=False)
561
 
562
  with gr.Row():
563
+ size_of_image = gr.Radio([256, 512], value=256, label='face model resolution', info="use 256/512 model?", visible=True) #
564
  preprocess_type = gr.Radio(['crop', 'full'], value='crop', label='How to handle the input image?', info="crop: resize the image; full: not resize")
565
 
566
  with gr.Row():
567
  is_still_mode = gr.Checkbox(label="Still mode (fewer head motion)", value=True)
568
+ facerender = gr.Radio(['facevid2vid','pirender'], value='facevid2vid', label='facerender', info="which face render?", visible=True)
569
 
570
  with gr.Row():
571
+ batch_size = gr.Slider(label="Batch size in generation", step=1, maximum=256, value=2)
572
+ enhancer = gr.Checkbox(label="GFPGAN as Face enhancer", value=False, visible=False)
573
 
574
  submit = gr.Button('Start video chat now', elem_id="sadtalker_generate", variant='primary')
575
 
 
602
  gr.Markdown("### <center>❗ Please do not generate content that could infringe upon the rights or cause harm to individuals or organizations.</center>")
603
  gr.Markdown("<center>💡 - How to use this app:After sending your questions to ChatGLM2, click “Chat now”, “Generate using Edge-TTS”, “Generate using FreeVC” and “Start video chat now” in turn.</center>")
604
 
605
+ demo.queue().launch(show_error=True, debug=True, share=True)