Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ async def generate_response(user_input):
|
|
85 |
|
86 |
# Gradio interface function (generator)
|
87 |
async def gradio_chat_interface(mode, password, user_input, example):
|
88 |
-
if mode == "
|
89 |
filename = example[-6:-2] + ".md"
|
90 |
file = open("examples/" + filename, "r")
|
91 |
output = file.read()
|
@@ -120,7 +120,7 @@ with gr.Blocks() as demo:
|
|
120 |
myDescription = gr.HTML("""
|
121 |
<h3 align='center'>Quel sujet vous intéresse ?</h3>
|
122 |
<p align='center'>🐶 🏃🏻♂️ 🌗 🍇 🌈 🍽️ 🏆 🚘 ✈️ 🩺 </p>
|
123 |
-
<p align='center' bgcolor="Moccasin">Veillez soumettre votre
|
124 |
"""
|
125 |
)
|
126 |
with gr.Row():
|
|
|
85 |
|
86 |
# Gradio interface function (generator)
|
87 |
async def gradio_chat_interface(mode, password, user_input, example):
|
88 |
+
if mode == "Exemples":
|
89 |
filename = example[-6:-2] + ".md"
|
90 |
file = open("examples/" + filename, "r")
|
91 |
output = file.read()
|
|
|
120 |
myDescription = gr.HTML("""
|
121 |
<h3 align='center'>Quel sujet vous intéresse ?</h3>
|
122 |
<p align='center'>🐶 🏃🏻♂️ 🌗 🍇 🌈 🍽️ 🏆 🚘 ✈️ 🩺 </p>
|
123 |
+
<p align='center' bgcolor="Moccasin">Veillez soumettre votre question en français ou dans une autre langue !</p>
|
124 |
"""
|
125 |
)
|
126 |
with gr.Row():
|