|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> |
|
|
<style> |
|
|
|
|
|
body { |
|
|
font-family: 'Arial', sans-serif; |
|
|
background-color: #f0f0f0; |
|
|
color: #333; |
|
|
line-height: 1.6; |
|
|
} |
|
|
|
|
|
form { |
|
|
max-width: 400px; |
|
|
margin: 10px auto; |
|
|
padding: 4px 20px; |
|
|
background: #ffffff; |
|
|
border-radius: 8px; |
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
|
|
padding-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
input[type=file], |
|
|
input[type=number], |
|
|
input[type=text] { |
|
|
width: 95%; |
|
|
padding: 10px; |
|
|
margin-bottom: 10px; |
|
|
border-radius: 4px; |
|
|
border: 1px solid #ddd; |
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); |
|
|
} |
|
|
select { |
|
|
width: 30%; |
|
|
padding: 10px; |
|
|
margin-bottom: 10px; |
|
|
border-radius: 4px; |
|
|
border: 1px solid #ddd; |
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); |
|
|
} |
|
|
|
|
|
input[type=submit] { |
|
|
width: 25%; |
|
|
background-color: #4CAF50; |
|
|
color: white; |
|
|
padding: 7.5px 15px; |
|
|
border: none; |
|
|
border-radius: 5px; |
|
|
cursor: pointer; |
|
|
font-size: 12px; |
|
|
display: block; |
|
|
margin-right: auto; |
|
|
margin-left: auto; |
|
|
} |
|
|
|
|
|
input[type=submit]:hover { |
|
|
background-color: #45a049; |
|
|
} |
|
|
|
|
|
label { |
|
|
margin-top: 10px; |
|
|
display: block; |
|
|
} |
|
|
|
|
|
.footer { |
|
|
width: 100%; |
|
|
background-color: #f0f0f0; |
|
|
padding: 0; |
|
|
position: absolute; |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
.footer a { |
|
|
padding: 0.5rem; |
|
|
text-decoration: none; |
|
|
} |
|
|
|
|
|
.fa-github:hover { |
|
|
transform: scale(1.2) |
|
|
} |
|
|
.fa-github{ |
|
|
color: #000000 |
|
|
} |
|
|
.fa-linkedin:hover { |
|
|
transform: scale(1.2) |
|
|
} |
|
|
.fa-linkedin { |
|
|
color: #0077B5 |
|
|
} |
|
|
|
|
|
@media (max-width: 768px) { |
|
|
form { |
|
|
width: 90%; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<form action="/process_video/" enctype="multipart/form-data" method="post"> |
|
|
Video File: <input type="file" name="video_file"><br> |
|
|
Subtitles File: <input type="file" name="srt_file"><br> |
|
|
<label for="task">Task</label> |
|
|
<select id="task" name="task"> |
|
|
<option value="transcribe">Transcribe</option> |
|
|
<option value="translate">Translate</option> |
|
|
</select><br> |
|
|
Max words per line: <input type="number" name="max_words_per_line" value="6"><br> |
|
|
Font size: <input type="number" name="fontsize" value="42"><br> |
|
|
Font: <input type="text" name="font" value="FuturaPTHeavy"><br> |
|
|
Background color (Pro tip: #00FFFF00 = transparent): <input type="text" name="bg_color" value="#070a13b3"><br> |
|
|
Text color: <input type="text" name="text_color" value="white"><br> |
|
|
<input type="submit"> |
|
|
</form> |
|
|
|
|
|
<div class="footer"> |
|
|
<p>Created by:</p> |
|
|
<a href="https://github.com/marquesafonso" class="github"><i class="fab fa-github fa-3x"></i></a> |
|
|
<a href="https://www.linkedin.com/in/marquesafonso" class="linkedin"><i class="fab fa-linkedin fa-3x"></i></a> |
|
|
</div> |
|
|
</body> |
|
|
</html> |
|
|
|