Update app.py
Browse files
app.py
CHANGED
|
@@ -225,7 +225,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
| 225 |
|
| 226 |
##################################################
|
| 227 |
#zu einem Text-Prompt ein Bild via Stable Diffusion generieren
|
| 228 |
-
def generate_bild(prompt, chatbot, model_option_zeichnen, temperature=0.5, max_new_tokens=4048,top_p=0.6, repetition_penalty=1.3):
|
| 229 |
if (model_option_zeichnen == "HugginfFace"):
|
| 230 |
print("Bild Erzeugung HF..............................")
|
| 231 |
#Bild nach Anweisung zeichnen und in History darstellen...
|
|
@@ -475,7 +475,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 475 |
with gr.Row():
|
| 476 |
with gr.Column(scale=5):
|
| 477 |
with gr.Row():
|
| 478 |
-
chatbot_bild = gr.Chatbot(elem_id="li-zeichnen",
|
| 479 |
with gr.Row():
|
| 480 |
with gr.Column(scale=12):
|
| 481 |
user_input2 = gr.Textbox(
|
|
|
|
| 225 |
|
| 226 |
##################################################
|
| 227 |
#zu einem Text-Prompt ein Bild via Stable Diffusion generieren
|
| 228 |
+
def generate_bild(prompt, chatbot, model_option_zeichnen='HuggingFace', temperature=0.5, max_new_tokens=4048,top_p=0.6, repetition_penalty=1.3):
|
| 229 |
if (model_option_zeichnen == "HugginfFace"):
|
| 230 |
print("Bild Erzeugung HF..............................")
|
| 231 |
#Bild nach Anweisung zeichnen und in History darstellen...
|
|
|
|
| 475 |
with gr.Row():
|
| 476 |
with gr.Column(scale=5):
|
| 477 |
with gr.Row():
|
| 478 |
+
chatbot_bild = gr.Chatbot(elem_id="li-zeichnen",show_copy_button=True, show_share_button=True)
|
| 479 |
with gr.Row():
|
| 480 |
with gr.Column(scale=12):
|
| 481 |
user_input2 = gr.Textbox(
|