Update app.py
Browse files
app.py
CHANGED
@@ -364,9 +364,9 @@ def umwandeln_fuer_anzeige(image):
|
|
364 |
|
365 |
def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
|
366 |
if (prompt.find('zeichnen') != -1):
|
367 |
-
generate_bild(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
368 |
else:
|
369 |
-
generate_text(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
370 |
|
371 |
def generate_bild(prompt, history,):
|
372 |
data = {"inputs": prompt}
|
|
|
364 |
|
365 |
def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
|
366 |
if (prompt.find('zeichnen') != -1):
|
367 |
+
generate_bild(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
368 |
else:
|
369 |
+
generate_text(prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
370 |
|
371 |
def generate_bild(prompt, history,):
|
372 |
data = {"inputs": prompt}
|