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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -379,20 +379,13 @@ def generate_auswahl(prompt, file, history, rag_option, model_option, openai_api
379
  print("history vor Zusatz...........")
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)
387
  yield history, "Generating"
388
- if shared_state.interrupted:
389
- shared_state.recover()
390
- try:
391
- yield history, "Stop: Success"
392
- return
393
- except:
394
- pass
395
- """
396
 
397
  def generate_bild(prompt):
398
  data = {"inputs": prompt}
 
379
  print("history vor Zusatz...........")
380
  print(history)
381
  history[-1][1] = result
382
+ #return history, "Success"
 
383
  for character in result:
384
  history[-1][1] += character
385
  time.sleep(0.03)
386
  yield history, "Generating"
387
+
388
+
 
 
 
 
 
 
389
 
390
  def generate_bild(prompt):
391
  data = {"inputs": prompt}