jeremierostan commited on
Commit
24abf4a
β€’
1 Parent(s): ebf9580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -199,7 +199,6 @@ with gr.Blocks() as demo:
199
  gr.HTML(f"""<img src="https://i.postimg.cc/9MXZpwMy/a-captivating-pixar-style-3d-animation-featuring-a-ydzhw1k-R-GZi-Np1y7-Ufi-A-tvqb-XZ-z-R4a-G-8pf-Xcm-Og.png" width="320" height="240">""")
200
  gr.Markdown("# **NewsWave** 🌊🐬")
201
  gr.Markdown("**Generate AI-written articles based on your interests, current English level, and online information!**")
202
- gr.Markdown(brd_txt)
203
  topic_input = gr.Textbox(label="Enter your topic of interest")
204
  level_input = gr.Dropdown(label="Select your current English proficiency level", choices=list(CEFR_LEVELS.keys()))
205
  objective_input = gr.Textbox(label="Enter a specific learning objective (optional)")
@@ -208,6 +207,7 @@ with gr.Blocks() as demo:
208
  audio_output = gr.Audio()
209
  article_output = gr.Markdown()
210
  feedback_output = gr.Markdown()
 
211
 
212
  def on_generate(topic, level, learning_objective):
213
  article, feedback, _ = main(topic, level, learning_objective)
@@ -221,7 +221,7 @@ with gr.Blocks() as demo:
221
  tts_btn.click(on_read, inputs=[article_output], outputs=[audio_output])
222
 
223
  gr.Row([generate_btn, tts_btn])
224
- gr.Column([audio_output, article_output, feedback_output])
225
 
226
  demo.launch(auth=(username, password))
227
 
 
199
  gr.HTML(f"""<img src="https://i.postimg.cc/9MXZpwMy/a-captivating-pixar-style-3d-animation-featuring-a-ydzhw1k-R-GZi-Np1y7-Ufi-A-tvqb-XZ-z-R4a-G-8pf-Xcm-Og.png" width="320" height="240">""")
200
  gr.Markdown("# **NewsWave** 🌊🐬")
201
  gr.Markdown("**Generate AI-written articles based on your interests, current English level, and online information!**")
 
202
  topic_input = gr.Textbox(label="Enter your topic of interest")
203
  level_input = gr.Dropdown(label="Select your current English proficiency level", choices=list(CEFR_LEVELS.keys()))
204
  objective_input = gr.Textbox(label="Enter a specific learning objective (optional)")
 
207
  audio_output = gr.Audio()
208
  article_output = gr.Markdown()
209
  feedback_output = gr.Markdown()
210
+ crtr_rgt = gr.Markdown(brd_txt)
211
 
212
  def on_generate(topic, level, learning_objective):
213
  article, feedback, _ = main(topic, level, learning_objective)
 
221
  tts_btn.click(on_read, inputs=[article_output], outputs=[audio_output])
222
 
223
  gr.Row([generate_btn, tts_btn])
224
+ gr.Column([audio_output, article_output, feedback_output, crtr_rgt])
225
 
226
  demo.launch(auth=(username, password))
227