alexkueck commited on
Commit
4a5dc92
1 Parent(s): 3f2dbc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -442,11 +442,11 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
442
  print("history zeichnen......................")
443
  print(history)
444
  if shared_state.interrupted:
445
- shared_state.recover()
446
- try:
447
- return history, "Stop: Success"
448
- except:
449
- pass
450
  """
451
  else:
452
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
@@ -459,11 +459,11 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
459
  yield history, "Generating"
460
  if shared_state.interrupted:
461
  shared_state.recover()
462
- try:
463
- yield history, "Stop: Success"
464
- return
465
- except:
466
- pass
467
  """
468
  ################################################
469
  #GUI
 
442
  print("history zeichnen......................")
443
  print(history)
444
  if shared_state.interrupted:
445
+ shared_state.recover()
446
+ try:
447
+ return history, "Stop: Success"
448
+ except:
449
+ pass
450
  """
451
  else:
452
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
 
459
  yield history, "Generating"
460
  if shared_state.interrupted:
461
  shared_state.recover()
462
+ try:
463
+ yield history, "Stop: Success"
464
+ return
465
+ except:
466
+ pass
467
  """
468
  ################################################
469
  #GUI