Update app.py
Browse files
app.py
CHANGED
|
@@ -543,7 +543,10 @@ with open("custom.css", "r", encoding="utf-8") as f:
|
|
| 543 |
customCSS = f.read()
|
| 544 |
|
| 545 |
with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
|
|
|
|
|
| 546 |
history = gr.State([])
|
|
|
|
| 547 |
user_question = gr.State("")
|
| 548 |
with gr.Row():
|
| 549 |
gr.HTML("LI Chatot")
|
|
|
|
| 543 |
customCSS = f.read()
|
| 544 |
|
| 545 |
with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
| 546 |
+
#Session Variablen, um Weete zu speichern, auch wenn die Felder in der GUI bereits wieder leer sind
|
| 547 |
+
#history parallel zu chatbot speichern - momentan nicht im Gebrauch, ist aber in allen relevanten Methoden mit verlinkt
|
| 548 |
history = gr.State([])
|
| 549 |
+
#damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
|
| 550 |
user_question = gr.State("")
|
| 551 |
with gr.Row():
|
| 552 |
gr.HTML("LI Chatot")
|