alexkueck commited on
Commit
9400523
·
1 Parent(s): 7407198

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -372,6 +372,7 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
372
  print("history zeichnen......................")
373
  print(history)
374
  return history, "Success"
 
375
  else:
376
  result = 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,)
377
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
@@ -389,6 +390,7 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
389
  return
390
  except:
391
  pass
 
392
 
393
  def generate_bild(prompt):
394
  data = {"inputs": prompt}
 
372
  print("history zeichnen......................")
373
  print(history)
374
  return history, "Success"
375
+ """
376
  else:
377
  result = 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,)
378
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
 
390
  return
391
  except:
392
  pass
393
+ """
394
 
395
  def generate_bild(prompt):
396
  data = {"inputs": prompt}