MarkoVidrih commited on
Commit
64accec
1 Parent(s): 8f04f5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def pipe (text, voice, image_in):
32
  video = get_dreamtalk(image_in, speech)
33
  except:
34
 
35
- raise gr.Error('An error occurred while loading DreamTalk: Image may not contain any face')
36
 
37
  return video
38
 
@@ -46,7 +46,7 @@ with gr.Blocks() as demo:
46
  """)
47
  with gr.Row():
48
  with gr.Column():
49
- image_in = gr.Image(label="Portrait IN", type="filepath", value="./einstein.jpg")
50
  with gr.Column():
51
  voice = gr.Audio(type="filepath", label="Upload or Record Speaker audio (Optional voice cloning)")
52
  text = gr.Textbox(label="text")
 
32
  video = get_dreamtalk(image_in, speech)
33
  except:
34
 
35
+ raise gr.Error('An error occurred while loading: Image may not contain any face')
36
 
37
  return video
38
 
 
46
  """)
47
  with gr.Row():
48
  with gr.Column():
49
+ image_in = gr.Image(label="Portrait IN", type="filepath", value="./einstein1.jpg")
50
  with gr.Column():
51
  voice = gr.Audio(type="filepath", label="Upload or Record Speaker audio (Optional voice cloning)")
52
  text = gr.Textbox(label="text")