alexkueck commited on
Commit
4cb0591
1 Parent(s): c6d6ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -373,7 +373,6 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
373
  print("history zeichnen......................")
374
  print(history)
375
  return history, "Success"
376
- """
377
  else:
378
  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,)
379
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
@@ -381,7 +380,7 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
381
  print(history)
382
  history[-1][1] = result
383
  return history, "Success"
384
-
385
  for character in result:
386
  history[-1][1] += character
387
  time.sleep(0.03)
@@ -393,7 +392,7 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
393
  return
394
  except:
395
  pass
396
- """
397
 
398
  def generate_bild(prompt):
399
  data = {"inputs": prompt}
 
373
  print("history zeichnen......................")
374
  print(history)
375
  return history, "Success"
 
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
 
380
  print(history)
381
  history[-1][1] = result
382
  return history, "Success"
383
+ """
384
  for character in result:
385
  history[-1][1] += character
386
  time.sleep(0.03)
 
392
  return
393
  except:
394
  pass
395
+ """
396
 
397
  def generate_bild(prompt):
398
  data = {"inputs": prompt}