Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,10 +64,9 @@ def respond(message, history):
|
|
| 64 |
|
| 65 |
# 3. Interfaccia Chat
|
| 66 |
|
| 67 |
-
# CSS
|
| 68 |
-
# che causava il problema del testo invisibile sui telefoni in Dark Mode.
|
| 69 |
custom_css = """
|
| 70 |
-
|
| 71 |
border: 2px solid #4a4a4a !important;
|
| 72 |
border-radius: 8px !important;
|
| 73 |
}
|
|
@@ -83,12 +82,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 83 |
{"left": "$", "right": "$", "display": False}
|
| 84 |
]
|
| 85 |
),
|
| 86 |
-
#
|
| 87 |
-
textbox=gr.Textbox(
|
| 88 |
-
elem_id="bordo-scuro",
|
| 89 |
-
placeholder="๐ Scrivi qui la tua domanda...",
|
| 90 |
-
scale=7
|
| 91 |
-
),
|
| 92 |
title="๐ Limba 1.0 - Progetto Margherita",
|
| 93 |
description="Liceo Scientifico 'E. Fermi' - Nuoro. Assistente creato da Francesco Palladino.",
|
| 94 |
examples=[
|
|
@@ -116,5 +110,8 @@ if __name__ == "__main__":
|
|
| 116 |
if __name__ == "__main__":
|
| 117 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 118 |
|
|
|
|
|
|
|
|
|
|
| 119 |
if __name__ == "__main__":
|
| 120 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 64 |
|
| 65 |
# 3. Interfaccia Chat
|
| 66 |
|
| 67 |
+
# CSS per scurire i bordi del riquadro di testo predefinito senza romperne le funzioni
|
|
|
|
| 68 |
custom_css = """
|
| 69 |
+
textarea {
|
| 70 |
border: 2px solid #4a4a4a !important;
|
| 71 |
border-radius: 8px !important;
|
| 72 |
}
|
|
|
|
| 82 |
{"left": "$", "right": "$", "display": False}
|
| 83 |
]
|
| 84 |
),
|
| 85 |
+
# Lasciamo che Gradio generi il riquadro predefinito con il suo tasto Invia nativo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
title="๐ Limba 1.0 - Progetto Margherita",
|
| 87 |
description="Liceo Scientifico 'E. Fermi' - Nuoro. Assistente creato da Francesco Palladino.",
|
| 88 |
examples=[
|
|
|
|
| 110 |
if __name__ == "__main__":
|
| 111 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 112 |
|
| 113 |
+
if __name__ == "__main__":
|
| 114 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 115 |
+
|
| 116 |
if __name__ == "__main__":
|
| 117 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|