Spaces:
Runtime error
Runtime error
Commit
•
77cdad1
1
Parent(s):
2c665ee
Update app.py
Browse files
app.py
CHANGED
@@ -813,21 +813,21 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
813 |
|
814 |
with gr.Row():
|
815 |
with gr.Column(scale=1, min_width=TALKING_HEAD_WIDTH, visible=True):
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
|
820 |
-
|
821 |
-
|
822 |
# tmp_file_url = "/file=" + tmp_file.value['name']
|
823 |
-
|
824 |
-
|
825 |
|
826 |
# my_aud_file = gr.File(label="Audio file", type="file", visible=True)
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
|
832 |
with gr.Column(scale=7):
|
833 |
chatbot = gr.Chatbot()
|
|
|
813 |
|
814 |
with gr.Row():
|
815 |
with gr.Column(scale=1, min_width=TALKING_HEAD_WIDTH, visible=True):
|
816 |
+
speak_text_cb = gr.Checkbox(label="Enable speech", value=False)
|
817 |
+
speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
|
818 |
+
outputs=[speak_text_state])
|
819 |
|
820 |
+
my_file = gr.File(label="Upload a file", type="file", visible=False)
|
821 |
+
tmp_file = gr.File(LOOPING_TALKING_HEAD, visible=False)
|
822 |
# tmp_file_url = "/file=" + tmp_file.value['name']
|
823 |
+
htm_video = create_html_video(LOOPING_TALKING_HEAD, TALKING_HEAD_WIDTH)
|
824 |
+
video_html = gr.HTML(htm_video)
|
825 |
|
826 |
# my_aud_file = gr.File(label="Audio file", type="file", visible=True)
|
827 |
+
tmp_aud_file = gr.File("audios/tempfile.mp3", visible=False)
|
828 |
+
tmp_aud_file_url = "/file=" + tmp_aud_file.value['name']
|
829 |
+
htm_audio = f'<audio><source src={tmp_aud_file_url} type="audio/mp3"></audio>'
|
830 |
+
audio_html = gr.HTML(htm_audio)
|
831 |
|
832 |
with gr.Column(scale=7):
|
833 |
chatbot = gr.Chatbot()
|