Jaward commited on
Commit
e58f0de
·
verified ·
1 Parent(s): f48bf9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1459,7 +1459,8 @@ async def study_mode_process(file, api_service, api_key):
1459
  with gr.Blocks(
1460
  title="Lectūra AI",
1461
  css="""
1462
- h3 {text-align: center; color: #000 !important;}
 
1463
  .gradio-container-5-29-0 .prose :last-child {color: #fff !important; }
1464
  #lecture-container {font-family: 'Times New Roman', Times, serif;}
1465
  #slide-content {font-size: 48px; line-height: 1.2;}
@@ -1508,8 +1509,9 @@ with gr.Blocks(
1508
  js=js_code,
1509
  head='<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">'
1510
  ) as demo:
1511
- gr.Markdown("""
1512
- ### <center>Lectūra: Your AI Genie for Self-taught Mastery.</center>""")
 
1513
 
1514
  # Add mode tabs
1515
  with gr.Row():
@@ -2026,8 +2028,6 @@ with gr.Blocks(
2026
  initializeSpeakerSelect();
2027
  initializeNoteEditor();
2028
  }
2029
-
2030
- // Check immediately and also set up an observer
2031
  initializeComponents();
2032
 
2033
  const observer = new MutationObserver((mutations) => {
 
1459
  with gr.Blocks(
1460
  title="Lectūra AI",
1461
  css="""
1462
+ .gradio-container-5-32-0 .prose * {color: #fd7b00 !important;}
1463
+ h2, h3 {text-align: center; color: #000 !important;}
1464
  .gradio-container-5-29-0 .prose :last-child {color: #fff !important; }
1465
  #lecture-container {font-family: 'Times New Roman', Times, serif;}
1466
  #slide-content {font-size: 48px; line-height: 1.2;}
 
1509
  js=js_code,
1510
  head='<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">'
1511
  ) as demo:
1512
+ gr.Markdown("""## <center>Lectūra: Your AI Genie for Self-taught Mastery.</center>""")
1513
+ gr.Markdown("""### <center>(Disclaimer: This demo is part of a submission to the AgentX – LLM Agents MOOC Competition, hosted by Berkeley RDI. © Lectūra Labs. All rights reserved)</center>""")
1514
+ gr.Markdown("""### <center>Note: Genarating lecture speech takes a while, given that this demo is running on cpu. Recommend limit number of slides to 3 on cpu. For faster generation, please run the app with access to GPU.</center>""")
1515
 
1516
  # Add mode tabs
1517
  with gr.Row():
 
2028
  initializeSpeakerSelect();
2029
  initializeNoteEditor();
2030
  }
 
 
2031
  initializeComponents();
2032
 
2033
  const observer = new MutationObserver((mutations) => {