Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
3 |
demo.load(name = "giurimatrix/chatbot", api_key="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")
|
4 |
-
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks(theme='sudeepshouche/minimalist',css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as demo:
|
4 |
+
gr.Markdown("<h1>Giurimatrix chatbot ti dà il benvenuto.</h1>\n<p>Sono ancora in fase di apprendimento e alcune delle mie risposte possono non essere completamente giuste.\n Se non ti piace la mia risposta, puoi scrivere <code>/feedback</code> aggiungendo la riposta che consideri corretta. Grazie a questo feedback, migliorerò le mie risposte.\n</p><p>Se hai bisogno di una aiuto scrivi <code>/help</code>. Se vuoi sapere come processo i dati, scrivi <code>/privacy</code>. Buon lavoro!</p>")
|
5 |
+
chatbot = gr.Chatbot()
|
6 |
+
message = gr.Textbox()
|
7 |
+
clear = gr.Button("Cancella cronologia")
|
8 |
demo.load(name = "giurimatrix/chatbot", api_key="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")
|
9 |
+
|
10 |
+
if __name__ == "__main__":
|
11 |
+
demo.launch()
|