alexkueck commited on
Commit
7407198
1 Parent(s): c0e5b31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -364,7 +364,7 @@ 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
- result = 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
  #Bild ausgeben
369
  image = Image.open(io.BytesIO(result))
370
 
@@ -390,7 +390,7 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
390
  except:
391
  pass
392
 
393
- def generate_bild(prompt, history,):
394
  data = {"inputs": prompt}
395
  response = requests.post(API_URL, headers=HEADERS, json=data)
396
  print("fertig Bild")
 
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
+ result = generate_bild(prompt)
368
  #Bild ausgeben
369
  image = Image.open(io.BytesIO(result))
370
 
 
390
  except:
391
  pass
392
 
393
+ def generate_bild(prompt):
394
  data = {"inputs": prompt}
395
  response = requests.post(API_URL, headers=HEADERS, json=data)
396
  print("fertig Bild")