Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -457,7 +457,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
457 |
label="Max History Tokens",
|
458 |
)
|
459 |
repetition_penalty=gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=True)
|
460 |
-
anzahl_docs = gr.Slider(label="Anzahl
|
461 |
|
462 |
gr.Markdown(description)
|
463 |
|
@@ -468,14 +468,14 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
468 |
user_input,
|
469 |
chatbot,
|
470 |
#history,
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
],
|
480 |
outputs=[ chatbot, status_display], #[ chatbot, history, status_display],
|
481 |
show_progress=True,
|
|
|
457 |
label="Max History Tokens",
|
458 |
)
|
459 |
repetition_penalty=gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=True)
|
460 |
+
anzahl_docs = gr.Slider(label="Anzahl Dokumente", value=3, minimum=1, maximum=10, step=1, interactive=True, info="wie viele Dokumententeile aus dem Vektorstore an den prompt gehängt werden", visible=True),
|
461 |
|
462 |
gr.Markdown(description)
|
463 |
|
|
|
468 |
user_input,
|
469 |
chatbot,
|
470 |
#history,
|
471 |
+
rag_option,
|
472 |
+
model_option,
|
473 |
+
anzahl_docs,
|
474 |
+
top_p,
|
475 |
+
temperature,
|
476 |
+
max_length_tokens,
|
477 |
+
max_context_length_tokens,
|
478 |
+
repetition_penalty
|
479 |
],
|
480 |
outputs=[ chatbot, status_display], #[ chatbot, history, status_display],
|
481 |
show_progress=True,
|