MichaelWelsch
commited on
Commit
·
a8745bb
1
Parent(s):
670de52
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def respond_prompt0(Selbstauskunft, Kernfrage, chat):
|
|
43 |
return out, gr.update(value=chat, visible=True), gr.update(value="", visible=True)
|
44 |
|
45 |
else:
|
46 |
-
return out + ". \nLeider kann ich dir nicht weiterhelfen.", chat, ""
|
47 |
|
48 |
|
49 |
def respond_prompt1(Selbstauskunft, Kernfrage, chat, text):
|
@@ -122,7 +122,7 @@ with gr.Blocks() as demo:
|
|
122 |
title = gr.Markdown("Juristische Ersteinschätzung einer KI.")
|
123 |
description = gr.Markdown("Disclaimer: Dies ist keine Anwaltliche Erstberatung, sondern ein Forschungsprojekt.")
|
124 |
Selbstauskunft = gr.Textbox("", label="Erzähl mir, was passiert ist.")
|
125 |
-
Kernfrage = gr.Textbox("", label="Stelle eine Frage,
|
126 |
|
127 |
button_prompt1 = gr.Button(value="Weiter")
|
128 |
|
|
|
43 |
return out, gr.update(value=chat, visible=True), gr.update(value="", visible=True)
|
44 |
|
45 |
else:
|
46 |
+
return out + ". \nLeider kann ich dir nicht weiterhelfen. Versuche evtl. deine Frage präziser zu formulieren, was du juristisch erreichen möchtest.", chat, ""
|
47 |
|
48 |
|
49 |
def respond_prompt1(Selbstauskunft, Kernfrage, chat, text):
|
|
|
122 |
title = gr.Markdown("Juristische Ersteinschätzung einer KI.")
|
123 |
description = gr.Markdown("Disclaimer: Dies ist keine Anwaltliche Erstberatung, sondern ein Forschungsprojekt.")
|
124 |
Selbstauskunft = gr.Textbox("", label="Erzähl mir, was passiert ist.")
|
125 |
+
Kernfrage = gr.Textbox("", label="Stelle eine Frage, was du juristisch erreichen möchtest.")
|
126 |
|
127 |
button_prompt1 = gr.Button(value="Weiter")
|
128 |
|