Jaward commited on
Commit
8976c6a
·
verified ·
1 Parent(s): 0bb14fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1206,6 +1206,8 @@ js_code = """
1206
  with gr.Blocks(
1207
  title="Agent Feynman",
1208
  css="""
 
 
1209
  #lecture-container {font-family: 'Times New Roman', Times, serif;}
1210
  #slide-content {font-size: 48px; line-height: 1.2;}
1211
  #form-group {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; font-weight: 900; color: #000; background-color: white;}
@@ -1246,7 +1248,7 @@ with gr.Blocks(
1246
  default_slide_html = """
1247
  <div style="display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; min-height: 700px; padding: 20px; text-align: center; border: 1px solid #ddd; border-radius: 30px; box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important;">
1248
  <h2 style="font-style: italic; color: #000;">Waiting for lecture content...</h2>
1249
- <p style="margin-top: 10px; font-size: 16px;">Please Generate lecture content via the form on the left first before lecture begins</p>
1250
  </div>
1251
  """
1252
  slide_display = gr.HTML(label="Lecture Slides", value=default_slide_html, elem_id="slide-display")
 
1206
  with gr.Blocks(
1207
  title="Agent Feynman",
1208
  css="""
1209
+ h1 {text-align: center}
1210
+ h2 {text-align: center}
1211
  #lecture-container {font-family: 'Times New Roman', Times, serif;}
1212
  #slide-content {font-size: 48px; line-height: 1.2;}
1213
  #form-group {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; font-weight: 900; color: #000; background-color: white;}
 
1248
  default_slide_html = """
1249
  <div style="display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; min-height: 700px; padding: 20px; text-align: center; border: 1px solid #ddd; border-radius: 30px; box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important;">
1250
  <h2 style="font-style: italic; color: #000;">Waiting for lecture content...</h2>
1251
+ <p style="margin-top: 10px; font-size: 16px;color: #000">Please Generate lecture content via the form on the left first before lecture begins</p>
1252
  </div>
1253
  """
1254
  slide_display = gr.HTML(label="Lecture Slides", value=default_slide_html, elem_id="slide-display")