Spaces:
Sleeping
Sleeping
html_content
Browse files
app.py
CHANGED
@@ -385,14 +385,22 @@ def format_transcript_to_html(formatted_transcript):
|
|
385 |
"""
|
386 |
|
387 |
# 创建 HTML 内容
|
388 |
-
html_content = """
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
<
|
393 |
-
|
394 |
-
|
395 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
"""
|
397 |
|
398 |
return html_content
|
|
|
385 |
"""
|
386 |
|
387 |
# 创建 HTML 内容
|
388 |
+
html_content = f"""
|
389 |
+
<!DOCTYPE html>
|
390 |
+
<html>
|
391 |
+
<head>
|
392 |
+
<title>Transcript Viewer</title>
|
393 |
+
<style>
|
394 |
+
{CSS}
|
395 |
+
</style>
|
396 |
+
</head>
|
397 |
+
<body>
|
398 |
+
{html_content} # The HTML structure for displaying the content
|
399 |
+
<script>
|
400 |
+
{JS} # The JavaScript code for functionality
|
401 |
+
</script>
|
402 |
+
</body>
|
403 |
+
</html>
|
404 |
"""
|
405 |
|
406 |
return html_content
|