YinuoGuo27 commited on
Commit
d0036d9
·
verified ·
1 Parent(s): 5f2dc5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ def main():
64
  </div>
65
  """
66
  )
67
- driven_audio_type = gr.State(value="upload")
68
 
69
  with gr.Row():
70
  with gr.Column(variant="panel"):
@@ -76,7 +76,7 @@ def main():
76
  with gr.TabItem("Upload"):
77
  upload_driven_audio = gr.Audio(label="Upload audio", sources="upload", type="filepath")
78
  upload_driven_audio.change(set_upload, outputs=driven_audio_type)
79
- reference_audio_type = gr.State(value="upload")
80
 
81
  with gr.TabItem("TTS"):
82
  upload_reference_audio = gr.Audio(label="Upload Reference Audio", sources="upload", type="filepath")
 
64
  </div>
65
  """
66
  )
67
+ driven_audio_type = gr.Textbox(value="upload", visible=False)
68
 
69
  with gr.Row():
70
  with gr.Column(variant="panel"):
 
76
  with gr.TabItem("Upload"):
77
  upload_driven_audio = gr.Audio(label="Upload audio", sources="upload", type="filepath")
78
  upload_driven_audio.change(set_upload, outputs=driven_audio_type)
79
+ reference_audio_type = gr.Textbox(value="upload", visible=False)
80
 
81
  with gr.TabItem("TTS"):
82
  upload_reference_audio = gr.Audio(label="Upload Reference Audio", sources="upload", type="filepath")