Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,6 +103,9 @@ with gr.Blocks() as demo:
|
|
| 103 |
with gr.Row():
|
| 104 |
video_html = gr.HTML(label="Video")
|
| 105 |
video_playable = gr.Video(label="Video")
|
|
|
|
|
|
|
|
|
|
| 106 |
with gr.Row():
|
| 107 |
video_type_dropdown = gr.Dropdown(["learning", "audiobook", "podcast", "vlog", "news", "cooking", "review"], label="Video Type", value="learning", allow_custom_value=True)
|
| 108 |
video_subject_dropdown = gr.Dropdown(["tech", "science", "lifestyle", "cooking", "travel", "finance", "politics"], label="Video Subject", value="tech", allow_custom_value=True)
|
|
@@ -112,17 +115,17 @@ with gr.Blocks() as demo:
|
|
| 112 |
gender_dropdown = gr.Dropdown(["male", "female", "non-binary"], label="Gender", value="female")
|
| 113 |
demography_text = gr.Textbox(label="Demography")
|
| 114 |
with gr.Row():
|
| 115 |
-
source_language_text = gr.Textbox(label="Source Language")
|
| 116 |
-
target_language_text = gr.Textbox(label="Target Language")
|
| 117 |
with gr.Row():
|
| 118 |
-
total_time_text = gr.Textbox(label="Video Duration")
|
| 119 |
comments_text = gr.Textbox(label="Comments")
|
| 120 |
gr.Markdown("Video Line Information")
|
| 121 |
line_id_dropdown = gr.Dropdown([], label="Line IDs")
|
| 122 |
with gr.Row():
|
| 123 |
audio_item = gr.Audio(label="Source Audio", type="filepath")
|
| 124 |
accent_text = gr.Textbox(label="Accent", value="indian")
|
| 125 |
-
speaker_gender_dropdown = gr.Dropdown(["female", "male"], label="
|
| 126 |
with gr.Row():
|
| 127 |
source_transcript_text = gr.Textbox(label="Source Transcript")
|
| 128 |
translation_text = gr.Textbox(label="Translation", interactive=False)
|
|
|
|
| 103 |
with gr.Row():
|
| 104 |
video_html = gr.HTML(label="Video")
|
| 105 |
video_playable = gr.Video(label="Video")
|
| 106 |
+
gr.Markdown("Please ensure to fill these sections and do not leave them empty. An example of how to update `Video Type`, `Video Subject` and `Video Topics`:")
|
| 107 |
+
gr.Markdown("If the video is of a Biology lecture, `Video Type`: `learning`, `Video Subject`: `science`, `Video Topics`: `biology`")
|
| 108 |
+
gr.Markdown("If the video is of Cooking, `Video Type`: `cooking`, `Video Subject`: `cooking`, `Video Topics`: `indian recipe`")
|
| 109 |
with gr.Row():
|
| 110 |
video_type_dropdown = gr.Dropdown(["learning", "audiobook", "podcast", "vlog", "news", "cooking", "review"], label="Video Type", value="learning", allow_custom_value=True)
|
| 111 |
video_subject_dropdown = gr.Dropdown(["tech", "science", "lifestyle", "cooking", "travel", "finance", "politics"], label="Video Subject", value="tech", allow_custom_value=True)
|
|
|
|
| 115 |
gender_dropdown = gr.Dropdown(["male", "female", "non-binary"], label="Gender", value="female")
|
| 116 |
demography_text = gr.Textbox(label="Demography")
|
| 117 |
with gr.Row():
|
| 118 |
+
source_language_text = gr.Textbox(label="Source Language", interactive=False)
|
| 119 |
+
target_language_text = gr.Textbox(label="Target Language", interactive=False)
|
| 120 |
with gr.Row():
|
| 121 |
+
total_time_text = gr.Textbox(label="Video Duration", interactive=False)
|
| 122 |
comments_text = gr.Textbox(label="Comments")
|
| 123 |
gr.Markdown("Video Line Information")
|
| 124 |
line_id_dropdown = gr.Dropdown([], label="Line IDs")
|
| 125 |
with gr.Row():
|
| 126 |
audio_item = gr.Audio(label="Source Audio", type="filepath")
|
| 127 |
accent_text = gr.Textbox(label="Accent", value="indian")
|
| 128 |
+
speaker_gender_dropdown = gr.Dropdown(["female", "male"], label="Audio Gender", value="female")
|
| 129 |
with gr.Row():
|
| 130 |
source_transcript_text = gr.Textbox(label="Source Transcript")
|
| 131 |
translation_text = gr.Textbox(label="Translation", interactive=False)
|