Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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'>
|
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="
|
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")
|