lucas-ventura commited on
Commit
d5c54d1
·
verified ·
1 Parent(s): 8f299c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -292,6 +292,24 @@ title_markdown = """
292
  </div>
293
  """
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  # Citation from demo_sample.py
296
  bibtext = """
297
  ### Citation
@@ -315,6 +333,7 @@ with gr.Blocks(title="Chapter-Llama", head=head) as demo:
315
  chapter generation by incorporating visual content.
316
  """
317
  )
 
318
 
319
  with gr.Row():
320
  with gr.Column():
 
292
  </div>
293
  """
294
 
295
+ note_html = """
296
+ <div style="background-color: #f9f9f9; border-left: 5px solid #48dbfb; padding: 20px; margin-top: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
297
+ <p style="font-size: 1.1em; color: #ff9933; margin-bottom: 10px; font-weight: bold;">Note: If you encounter any errors with this demo, you can run the code locally using the following commands:</p>
298
+ <pre style="background-color: #f1f1f1; padding: 15px; border-radius: 5px; overflow-x: auto;">
299
+ # Clone the repository
300
+ git clone https://github.com/lucas-ventura/chapter-llama.git
301
+ cd chapter-llama
302
+
303
+ # Install demo dependencies
304
+ python -m pip install -e ".[demo]"
305
+
306
+ # Launch the demo
307
+ python demo.py
308
+ </pre>
309
+ <p style="font-size: 1.1em; color: #555; margin-bottom: 10px;">Chapter-Llama is an efficient solution for generating chapters in hour-long videos. We appreciate your feedback and contributions to improve this tool. If you find any issues, please report them on our <a href="https://github.com/lucas-ventura/chapter-llama/issues" style="color: #8F68C3; text-decoration: none;">GitHub repository</a>.</p>
310
+ </div>
311
+ """
312
+
313
  # Citation from demo_sample.py
314
  bibtext = """
315
  ### Citation
 
333
  chapter generation by incorporating visual content.
334
  """
335
  )
336
+ gr.HTML(note_html)
337
 
338
  with gr.Row():
339
  with gr.Column():