youngtsai commited on
Commit
b9bc586
·
1 Parent(s): ac12d84

html_content

Browse files
Files changed (1) hide show
  1. app.py +16 -8
app.py CHANGED
@@ -385,14 +385,22 @@ def format_transcript_to_html(formatted_transcript):
385
  """
386
 
387
  # 创建 HTML 内容
388
- html_content = """
389
- <div id="contentDisplay">
390
- <div id="imageDisplay"></div>
391
- <h3 id="timeDisplay"></h3>
392
- <p id="textDisplay"></p>
393
- </div>
394
- <button id="prevButton">Previous</button>
395
- <button id="nextButton">Next</button>
 
 
 
 
 
 
 
 
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