Update app.py
Browse files
app.py
CHANGED
|
@@ -556,7 +556,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 556 |
with gr.Row():
|
| 557 |
gr.HTML("LI Chatot")
|
| 558 |
status_display = gr.Markdown("Success", elem_id="status_display")
|
| 559 |
-
|
| 560 |
with gr.Row():
|
| 561 |
with gr.Column(scale=5):
|
| 562 |
with gr.Row():
|
|
@@ -625,7 +625,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 625 |
with gr.Tab("KI zum Zeichnen"):
|
| 626 |
with gr.Row():
|
| 627 |
gr.HTML("LI Zeichnen mit KI")
|
| 628 |
-
|
| 629 |
with gr.Row():
|
| 630 |
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"
|
| 631 |
additional_inputs = [
|
|
@@ -635,19 +635,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 635 |
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)
|
| 636 |
]
|
| 637 |
chatbot_bild = gr.Chatbot(elem_id="li-zeichnen")
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
additional_inputs = additional_inputs,
|
| 641 |
-
additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False),
|
| 642 |
-
title = "Zeichnen mit KI",
|
| 643 |
-
theme="soft",
|
| 644 |
-
chatbot=chatbot_bild,
|
| 645 |
-
retry_btn="🔄 Wiederholen",
|
| 646 |
-
undo_btn="↩️ Letztes löschen",
|
| 647 |
-
clear_btn="🗑️ Verlauf löschen",
|
| 648 |
-
submit_btn = "Abschicken",
|
| 649 |
-
description = description2)
|
| 650 |
-
"""
|
| 651 |
gr.Markdown(description)
|
| 652 |
|
| 653 |
######################################
|
|
@@ -698,7 +687,17 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 698 |
|
| 699 |
######################################
|
| 700 |
# Für Tab 2: Zeichnen
|
| 701 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 702 |
|
| 703 |
demo.title = "LI-ChatBot"
|
| 704 |
demo.queue().launch(debug=True)
|
|
|
|
| 556 |
with gr.Row():
|
| 557 |
gr.HTML("LI Chatot")
|
| 558 |
status_display = gr.Markdown("Success", elem_id="status_display")
|
| 559 |
+
gr.Markdown(description_top)
|
| 560 |
with gr.Row():
|
| 561 |
with gr.Column(scale=5):
|
| 562 |
with gr.Row():
|
|
|
|
| 625 |
with gr.Tab("KI zum Zeichnen"):
|
| 626 |
with gr.Row():
|
| 627 |
gr.HTML("LI Zeichnen mit KI")
|
| 628 |
+
gr.Markdown(description_top)
|
| 629 |
with gr.Row():
|
| 630 |
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"
|
| 631 |
additional_inputs = [
|
|
|
|
| 635 |
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)
|
| 636 |
]
|
| 637 |
chatbot_bild = gr.Chatbot(elem_id="li-zeichnen")
|
| 638 |
+
|
| 639 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 640 |
gr.Markdown(description)
|
| 641 |
|
| 642 |
######################################
|
|
|
|
| 687 |
|
| 688 |
######################################
|
| 689 |
# Für Tab 2: Zeichnen
|
| 690 |
+
chat_interface_bild = gr.ChatInterface(fn=generate_bild,
|
| 691 |
+
additional_inputs = additional_inputs,
|
| 692 |
+
additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False),
|
| 693 |
+
title = "Zeichnen mit KI",
|
| 694 |
+
theme="soft",
|
| 695 |
+
chatbot=chatbot_bild,
|
| 696 |
+
retry_btn="🔄 Wiederholen",
|
| 697 |
+
undo_btn="↩️ Letztes löschen",
|
| 698 |
+
clear_btn="🗑️ Verlauf löschen",
|
| 699 |
+
submit_btn = "Abschicken",
|
| 700 |
+
description = description2)
|
| 701 |
|
| 702 |
demo.title = "LI-ChatBot"
|
| 703 |
demo.queue().launch(debug=True)
|