Update app.py
Browse files
app.py
CHANGED
|
@@ -633,12 +633,12 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 633 |
# Tab zum Zeichnen mit Stable Diffusion
|
| 634 |
################################################
|
| 635 |
with gr.Tab("KI zum Zeichnen"):
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
#damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
|
| 643 |
user_question2 = gr.State("")
|
| 644 |
with gr.Row():
|
|
@@ -661,7 +661,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 661 |
cancelBtn2 = gr.Button("Stop")
|
| 662 |
with gr.Row():
|
| 663 |
emptyBtn2 = gr.ClearButton([user_input, chatbot, history, file_display, image_display], value="🧹 Neue Session", scale=10)
|
| 664 |
-
additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False)
|
| 665 |
|
| 666 |
|
| 667 |
|
|
|
|
| 633 |
# Tab zum Zeichnen mit Stable Diffusion
|
| 634 |
################################################
|
| 635 |
with gr.Tab("KI zum Zeichnen"):
|
| 636 |
+
additional_inputs = [
|
| 637 |
+
gr.Slider(label="Temperature", value=0.65, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Höhere Werte erzeugen diversere Antworten", visible=True),
|
| 638 |
+
gr.Slider(label="Max new tokens", value=1024, minimum=0, maximum=4096, step=64, interactive=True, info="Maximale Anzahl neuer Tokens", visible=True),
|
| 639 |
+
gr.Slider(label="Top-p (nucleus sampling)", value=0.6, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Höhere Werte verwenden auch Tokens mit niedrigerer Wahrscheinlichkeit.", visible=True),
|
| 640 |
+
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)
|
| 641 |
+
]
|
| 642 |
#damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
|
| 643 |
user_question2 = gr.State("")
|
| 644 |
with gr.Row():
|
|
|
|
| 661 |
cancelBtn2 = gr.Button("Stop")
|
| 662 |
with gr.Row():
|
| 663 |
emptyBtn2 = gr.ClearButton([user_input, chatbot, history, file_display, image_display], value="🧹 Neue Session", scale=10)
|
| 664 |
+
#additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False)
|
| 665 |
|
| 666 |
|
| 667 |
|