Update app.py
Browse files
app.py
CHANGED
@@ -439,7 +439,7 @@ def generate_bild(prompt, chatbot, temperature=0.5, max_new_tokens=4048,top_p=0.
|
|
439 |
image = Image.open(io.BytesIO(result))
|
440 |
image_64 = umwandeln_fuer_anzeige(image)
|
441 |
chatbot.append(prompt, "<img src='data:image/png;base64,{0}'/>".format(base64.b64encode(image_64).decode('utf-8')))
|
442 |
-
|
443 |
|
444 |
|
445 |
|
@@ -629,7 +629,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
629 |
gr.Markdown(description_top)
|
630 |
with gr.Row():
|
631 |
description2 = "<strong>Information:</strong> Hier wird ein <strong>Large Language Model (LLM)</strong> zum Zeichnen verwendet. Zur Zeit wird hier Stable Diffusion verwendet.\n\n"
|
632 |
-
css = .toast-wrap { display: none !important }
|
633 |
additional_inputs = [
|
634 |
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),
|
635 |
gr.Slider(label="Max new tokens", value=1024, minimum=0, maximum=4096, step=64, interactive=True, info="Maximale Anzahl neuer Tokens", visible=True),
|
@@ -647,7 +646,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
647 |
undo_btn="↩️ Letztes löschen",
|
648 |
clear_btn="🗑️ Verlauf löschen",
|
649 |
submit_btn = "Abschicken",
|
650 |
-
description =
|
651 |
#chatbot_bild.like(vote, None, None)
|
652 |
|
653 |
|
|
|
439 |
image = Image.open(io.BytesIO(result))
|
440 |
image_64 = umwandeln_fuer_anzeige(image)
|
441 |
chatbot.append(prompt, "<img src='data:image/png;base64,{0}'/>".format(base64.b64encode(image_64).decode('utf-8')))
|
442 |
+
return chatbot
|
443 |
|
444 |
|
445 |
|
|
|
629 |
gr.Markdown(description_top)
|
630 |
with gr.Row():
|
631 |
description2 = "<strong>Information:</strong> Hier wird ein <strong>Large Language Model (LLM)</strong> zum Zeichnen verwendet. Zur Zeit wird hier Stable Diffusion verwendet.\n\n"
|
|
|
632 |
additional_inputs = [
|
633 |
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),
|
634 |
gr.Slider(label="Max new tokens", value=1024, minimum=0, maximum=4096, step=64, interactive=True, info="Maximale Anzahl neuer Tokens", visible=True),
|
|
|
646 |
undo_btn="↩️ Letztes löschen",
|
647 |
clear_btn="🗑️ Verlauf löschen",
|
648 |
submit_btn = "Abschicken",
|
649 |
+
description = description2)
|
650 |
#chatbot_bild.like(vote, None, None)
|
651 |
|
652 |
|