Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,34 +65,33 @@ def respond(message, history):
|
|
| 65 |
# 3. Interfaccia Chat
|
| 66 |
demo = gr.ChatInterface(
|
| 67 |
respond,
|
| 68 |
-
# 1. Configurazione del Chatbot (
|
| 69 |
chatbot=gr.Chatbot(
|
| 70 |
latex_delimiters=[
|
| 71 |
{"left": "$$", "right": "$$", "display": True},
|
| 72 |
{"left": "$", "right": "$", "display": False}
|
| 73 |
]
|
| 74 |
),
|
| 75 |
-
# 2. Riquadro di testo
|
| 76 |
textbox=gr.Textbox(
|
| 77 |
placeholder="Scrivi qui la tua domanda per Limba...",
|
| 78 |
container=False,
|
| 79 |
scale=7,
|
| 80 |
-
lines=2
|
| 81 |
),
|
| 82 |
-
# 3. Testi e
|
| 83 |
title="🚀 Limba 1.0 - Progetto Margherita",
|
| 84 |
description="Liceo Scientifico 'E. Fermi' - Nuoro. Assistente creato da Francesco Palladino.",
|
| 85 |
examples=[
|
| 86 |
"Chie ti hat creadu?",
|
| 87 |
"Spiegami la seconda legge di Newton",
|
| 88 |
"Spiegami la fotosintesi clorofilliana"
|
| 89 |
-
]
|
| 90 |
-
submit_btn="Invia 🚀",
|
| 91 |
-
retry_btn="Riprova 🔄",
|
| 92 |
-
undo_btn="Annulla ↩️",
|
| 93 |
-
clear_btn="Pulisci 🗑️",
|
| 94 |
)
|
| 95 |
|
|
|
|
|
|
|
|
|
|
| 96 |
if __name__ == "__main__":
|
| 97 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 98 |
|
|
|
|
| 65 |
# 3. Interfaccia Chat
|
| 66 |
demo = gr.ChatInterface(
|
| 67 |
respond,
|
| 68 |
+
# 1. Configurazione del Chatbot (Supporto formule matematiche)
|
| 69 |
chatbot=gr.Chatbot(
|
| 70 |
latex_delimiters=[
|
| 71 |
{"left": "$$", "right": "$$", "display": True},
|
| 72 |
{"left": "$", "right": "$", "display": False}
|
| 73 |
]
|
| 74 |
),
|
| 75 |
+
# 2. Riquadro di testo più visibile
|
| 76 |
textbox=gr.Textbox(
|
| 77 |
placeholder="Scrivi qui la tua domanda per Limba...",
|
| 78 |
container=False,
|
| 79 |
scale=7,
|
| 80 |
+
lines=2
|
| 81 |
),
|
| 82 |
+
# 3. Testi e descrizioni
|
| 83 |
title="🚀 Limba 1.0 - Progetto Margherita",
|
| 84 |
description="Liceo Scientifico 'E. Fermi' - Nuoro. Assistente creato da Francesco Palladino.",
|
| 85 |
examples=[
|
| 86 |
"Chie ti hat creadu?",
|
| 87 |
"Spiegami la seconda legge di Newton",
|
| 88 |
"Spiegami la fotosintesi clorofilliana"
|
| 89 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
+
if __name__ == "__main__":
|
| 93 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 94 |
+
|
| 95 |
if __name__ == "__main__":
|
| 96 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 97 |
|