Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -40,16 +40,9 @@ def read_root():
|
|
40 |
<!-- Add more language options here -->
|
41 |
</select><br><br>
|
42 |
<input type="submit" value="Transcribe">
|
43 |
-
<input type="hidden" id="tgt_lang" name="tgt_lang" value="fr_XX">
|
44 |
</form>
|
45 |
</body>
|
46 |
</html>
|
47 |
-
<script>
|
48 |
-
document.getElementById("language_select").addEventListener("change", function () {
|
49 |
-
var selectedLanguage = this.value;
|
50 |
-
document.getElementById("tgt_lang").value = selectedLanguage;
|
51 |
-
});
|
52 |
-
</script>
|
53 |
"""
|
54 |
return HTMLResponse(content=html_form, status_code=200)
|
55 |
|
|
|
40 |
<!-- Add more language options here -->
|
41 |
</select><br><br>
|
42 |
<input type="submit" value="Transcribe">
|
|
|
43 |
</form>
|
44 |
</body>
|
45 |
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
"""
|
47 |
return HTMLResponse(content=html_form, status_code=200)
|
48 |
|