Spaces:
Sleeping
Sleeping
html_content
Browse files
app.py
CHANGED
@@ -384,7 +384,7 @@ def format_transcript_to_html(formatted_transcript):
|
|
384 |
}});
|
385 |
"""
|
386 |
|
387 |
-
|
388 |
<div id="contentDisplay">
|
389 |
<div id="imageDisplay"></div>
|
390 |
<p id="timeDisplay"></p>
|
@@ -394,25 +394,6 @@ def format_transcript_to_html(formatted_transcript):
|
|
394 |
</div>
|
395 |
"""
|
396 |
|
397 |
-
# 创建 HTML 内容
|
398 |
-
html_content = f"""
|
399 |
-
<!DOCTYPE html>
|
400 |
-
<html>
|
401 |
-
<head>
|
402 |
-
<title>Transcript Viewer</title>
|
403 |
-
<style>
|
404 |
-
{CSS}
|
405 |
-
</style>
|
406 |
-
</head>
|
407 |
-
<body>
|
408 |
-
{html_content_container} # The HTML structure for displaying the content
|
409 |
-
<script>
|
410 |
-
{JS} # The JavaScript code for functionality
|
411 |
-
</script>
|
412 |
-
</body>
|
413 |
-
</html>
|
414 |
-
"""
|
415 |
-
|
416 |
return html_content
|
417 |
|
418 |
|
|
|
384 |
}});
|
385 |
"""
|
386 |
|
387 |
+
html_content = """
|
388 |
<div id="contentDisplay">
|
389 |
<div id="imageDisplay"></div>
|
390 |
<p id="timeDisplay"></p>
|
|
|
394 |
</div>
|
395 |
"""
|
396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
return html_content
|
398 |
|
399 |
|