Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ translations = {
|
|
| 20 |
"Send me somewhere!",
|
| 21 |
"1-week planned vacations"
|
| 22 |
],
|
| 23 |
-
"system_prompt": "You help users plan trips. Keep responses short and clear. If a user asks about booking a flight, hotel, or reservation, try to find a relevant link.",
|
| 24 |
"input_placeholder": "Type your travel question here..."
|
| 25 |
},
|
| 26 |
"fr": {
|
|
@@ -30,7 +30,7 @@ translations = {
|
|
| 30 |
"Envoyez-moi quelque part !",
|
| 31 |
"Voyage d'une semaine planifié"
|
| 32 |
],
|
| 33 |
-
"system_prompt": "Vous aidez les utilisateurs à planifier des voyages. Réponses courtes et simples. Fournissez un lien si on vous demande une réservation.",
|
| 34 |
"input_placeholder": "Tapez votre question de voyage ici..."
|
| 35 |
}
|
| 36 |
}
|
|
@@ -107,7 +107,7 @@ with gr.Blocks(css="""
|
|
| 107 |
.gradio-button { background-color: #7886C7; color: white; border-radius: 10px; }
|
| 108 |
.gradio-chatbot-message { background-color: #FFF2F2; color: #2D336B; padding: 10px; border-radius: 10px; }
|
| 109 |
""") as demo:
|
| 110 |
-
gr.Markdown("# 🌍 ***FlightAI - Your Travel Assistant / Votre Assistant de Voyage
|
| 111 |
|
| 112 |
|
| 113 |
|
|
@@ -119,7 +119,7 @@ with gr.Blocks(css="""
|
|
| 119 |
with gr.Row():
|
| 120 |
btn1 = gr.Button("Trip recommendations / Recommendations de Voyage", elem_classes=["gradio-button"])
|
| 121 |
btn2 = gr.Button("Send me somewhere! / Envoyez-moi quelques part!", elem_classes=["gradio-button"])
|
| 122 |
-
btn3 = gr.Button("1 week planned
|
| 123 |
|
| 124 |
|
| 125 |
|
|
|
|
| 20 |
"Send me somewhere!",
|
| 21 |
"1-week planned vacations"
|
| 22 |
],
|
| 23 |
+
"system_prompt": "You help users plan trips. Keep responses short and clear. If a user asks about booking a flight, hotel, or reservation, try to find a relevant link. Don't if not necessary Be friendly.",
|
| 24 |
"input_placeholder": "Type your travel question here..."
|
| 25 |
},
|
| 26 |
"fr": {
|
|
|
|
| 30 |
"Envoyez-moi quelque part !",
|
| 31 |
"Voyage d'une semaine planifié"
|
| 32 |
],
|
| 33 |
+
"system_prompt": "Vous aidez les utilisateurs à planifier des voyages. Réponses courtes et simples. Fournissez un lien si on vous demande une réservation. Si ce n'est pas nécessaire, ne le faite pas. Soyez amicale.",
|
| 34 |
"input_placeholder": "Tapez votre question de voyage ici..."
|
| 35 |
}
|
| 36 |
}
|
|
|
|
| 107 |
.gradio-button { background-color: #7886C7; color: white; border-radius: 10px; }
|
| 108 |
.gradio-chatbot-message { background-color: #FFF2F2; color: #2D336B; padding: 10px; border-radius: 10px; }
|
| 109 |
""") as demo:
|
| 110 |
+
gr.Markdown("# 🌍 ***FlightAI - Your Travel Assistant / Votre Assistant de Voyage*** ✈️\n")
|
| 111 |
|
| 112 |
|
| 113 |
|
|
|
|
| 119 |
with gr.Row():
|
| 120 |
btn1 = gr.Button("Trip recommendations / Recommendations de Voyage", elem_classes=["gradio-button"])
|
| 121 |
btn2 = gr.Button("Send me somewhere! / Envoyez-moi quelques part!", elem_classes=["gradio-button"])
|
| 122 |
+
btn3 = gr.Button("1 week planned vacation / Voyage d'une semaine planifié", elem_classes=["gradio-button"])
|
| 123 |
|
| 124 |
|
| 125 |
|