Update app.py
Browse files
app.py
CHANGED
|
@@ -290,10 +290,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
| 290 |
result = generate_text_zu_doc(file, prompt, k, rag_option, chatbot, history, db)
|
| 291 |
|
| 292 |
history = history + [[(file,), None],[prompt, result]]
|
| 293 |
-
|
| 294 |
-
print(history)
|
| 295 |
-
print ("chatbot ....................")
|
| 296 |
-
print(chatbot)
|
| 297 |
chatbot[-1][1] = ""
|
| 298 |
for character in result:
|
| 299 |
chatbot[-1][1] += character
|
|
@@ -492,7 +489,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 492 |
with gr.Tab("LI Chatbot"):
|
| 493 |
with gr.Row():
|
| 494 |
#gr.HTML("LI Chatot")
|
| 495 |
-
status_display = gr.Markdown("Antwort der KI ...", visible = True
|
| 496 |
with gr.Row():
|
| 497 |
with gr.Column(scale=5):
|
| 498 |
with gr.Row():
|
|
|
|
| 290 |
result = generate_text_zu_doc(file, prompt, k, rag_option, chatbot, history, db)
|
| 291 |
|
| 292 |
history = history + [[(file,), None],[prompt, result]]
|
| 293 |
+
|
|
|
|
|
|
|
|
|
|
| 294 |
chatbot[-1][1] = ""
|
| 295 |
for character in result:
|
| 296 |
chatbot[-1][1] += character
|
|
|
|
| 489 |
with gr.Tab("LI Chatbot"):
|
| 490 |
with gr.Row():
|
| 491 |
#gr.HTML("LI Chatot")
|
| 492 |
+
status_display = gr.Markdown("Antwort der KI ...", visible = True) #, elem_id="status_display")
|
| 493 |
with gr.Row():
|
| 494 |
with gr.Column(scale=5):
|
| 495 |
with gr.Row():
|