mbarnig commited on
Commit
fb17cd3
Β·
verified Β·
1 Parent(s): d971e0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -93,7 +93,7 @@ async def gradio_chat_interface(mode, password, user_input, example):
93
  else:
94
  # check the password
95
  if password == "":
96
- yield "To serach you need to enter an RTL password !"
97
  elif password != mypassword:
98
  yield "Please enter the correct RTL password !"
99
  else:
@@ -115,10 +115,10 @@ async def gradio_chat_interface(mode, password, user_input, example):
115
 
116
  with gr.Blocks() as demo:
117
  with gr.Row():
118
- myTitle = gr.HTML("<h2 align=center>RTL AI News Reader : What happened in the country πŸ‡±πŸ‡Ί or in the world 🌎 ?</h2>")
119
  with gr.Row():
120
  myDescription = gr.HTML("""
121
- <h3 align='center'>Wat fir een Thema interessΓ©iert Iech ?</h3>
122
  <p align='center'>🐢 πŸƒπŸ»β€β™‚οΈ πŸŒ— πŸ‡ 🌈 🍽️ πŸ† 🚘 ✈️ 🩺 </p>
123
  <p align='center' bgcolor="Moccasin">Submit your question in english or in another language !</p>
124
  """
@@ -129,7 +129,7 @@ with gr.Blocks() as demo:
129
  with gr.Row():
130
  question = gr.Textbox(lines=3, label="Please submit your question ?")
131
  with gr.Row():
132
- examples = gr.Radio(["What happened in May 2009 ?"], value="What happened in May 2009 ?", label="Beispiller")
133
  with gr.Row():
134
  clear = gr.Button("Clear")
135
  submit = gr.Button("Submit")
 
93
  else:
94
  # check the password
95
  if password == "":
96
+ yield "To search you need to enter an RTL password !"
97
  elif password != mypassword:
98
  yield "Please enter the correct RTL password !"
99
  else:
 
115
 
116
  with gr.Blocks() as demo:
117
  with gr.Row():
118
+ myTitle = gr.HTML("<h2 align=center>RTL English AI News Reader : What happened in the country πŸ‡±πŸ‡Ί or in the world 🌎 ?</h2>")
119
  with gr.Row():
120
  myDescription = gr.HTML("""
121
+ <h3 align='center'>What topic interests you ?</h3>
122
  <p align='center'>🐢 πŸƒπŸ»β€β™‚οΈ πŸŒ— πŸ‡ 🌈 🍽️ πŸ† 🚘 ✈️ 🩺 </p>
123
  <p align='center' bgcolor="Moccasin">Submit your question in english or in another language !</p>
124
  """
 
129
  with gr.Row():
130
  question = gr.Textbox(lines=3, label="Please submit your question ?")
131
  with gr.Row():
132
+ examples = gr.Radio(["What happened in May 2009 ?"], value="What happened in May 2009 ?", label="Examples")
133
  with gr.Row():
134
  clear = gr.Button("Clear")
135
  submit = gr.Button("Submit")