Commit
·
b77809f
1
Parent(s):
d8510c0
minor changes to default settings and html
Browse files- main.py +2 -2
- static/process_settings.html +4 -4
main.py
CHANGED
@@ -111,8 +111,8 @@ async def process_video_api(video_path: str = Form(...),
|
|
111 |
srt_string: str = Form(...),
|
112 |
srt_json: str = Form(...),
|
113 |
fontsize: Optional[int] = Form(42),
|
114 |
-
font: Optional[str] = Form("
|
115 |
-
bg_color: Optional[str] = Form("
|
116 |
text_color: Optional[str] = Form("white"),
|
117 |
highlight_mode: Optional[bool] = Form(False),
|
118 |
highlight_color: Optional[str] = Form("LightBlue"),
|
|
|
111 |
srt_string: str = Form(...),
|
112 |
srt_json: str = Form(...),
|
113 |
fontsize: Optional[int] = Form(42),
|
114 |
+
font: Optional[str] = Form("HelveticaBold"),
|
115 |
+
bg_color: Optional[str] = Form("transparent"),
|
116 |
text_color: Optional[str] = Form("white"),
|
117 |
highlight_mode: Optional[bool] = Form(False),
|
118 |
highlight_color: Optional[str] = Form("LightBlue"),
|
static/process_settings.html
CHANGED
@@ -129,12 +129,12 @@
|
|
129 |
</div>
|
130 |
|
131 |
<div id="normal_input">
|
132 |
-
<label for="srt_string">Transcription (SRT)</label>
|
133 |
<textarea name="srt_string" id="srt_string">{{ transcription_text }}</textarea>
|
134 |
</div>
|
135 |
|
136 |
<div id="highlight_input" style="display: none;">
|
137 |
-
<label for="srt_json">Transcription (JSON)</label>
|
138 |
<textarea name="srt_json" id="srt_json"></textarea>
|
139 |
</div>
|
140 |
</div>
|
@@ -219,8 +219,8 @@
|
|
219 |
document.getElementById("srt_json").value = jsonText;
|
220 |
}
|
221 |
|
222 |
-
populateDropdown('font', '/static/fonts.txt', "
|
223 |
-
populateDropdown('bg_color', '/static/colors.txt', "
|
224 |
populateDropdown('text_color', '/static/colors.txt', "white");
|
225 |
populateDropdown('highlight_color', '/static/colors.txt', "LightBlue");
|
226 |
|
|
|
129 |
</div>
|
130 |
|
131 |
<div id="normal_input">
|
132 |
+
<label for="srt_string">Transcription Preview (SRT)</label>
|
133 |
<textarea name="srt_string" id="srt_string">{{ transcription_text }}</textarea>
|
134 |
</div>
|
135 |
|
136 |
<div id="highlight_input" style="display: none;">
|
137 |
+
<label for="srt_json">Transcription Preview (JSON)</label>
|
138 |
<textarea name="srt_json" id="srt_json"></textarea>
|
139 |
</div>
|
140 |
</div>
|
|
|
219 |
document.getElementById("srt_json").value = jsonText;
|
220 |
}
|
221 |
|
222 |
+
populateDropdown('font', '/static/fonts.txt', "HelveticaBold");
|
223 |
+
populateDropdown('bg_color', '/static/colors.txt', "transparent");
|
224 |
populateDropdown('text_color', '/static/colors.txt', "white");
|
225 |
populateDropdown('highlight_color', '/static/colors.txt', "LightBlue");
|
226 |
|