alexkueck commited on
Commit
08f8c60
·
1 Parent(s): 7f40e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -347,7 +347,8 @@ def generate(text, history, rag_option, model_option, k=3, top_p=0.6, temperatu
347
  print("history/chatbot_rsponse:--------------------------------")
348
  print(history)
349
  print(chatbot_message)
350
-
 
351
  #Antwort als Stream ausgeben...
352
  for i in range(len(chatbot_message)):
353
  time.sleep(0.03)
@@ -359,8 +360,8 @@ def generate(text, history, rag_option, model_option, k=3, top_p=0.6, temperatu
359
  return
360
  except:
361
  pass
362
-
363
- """
364
  #Antwort als Stream ausgeben...
365
  history[-1][1] = ""
366
  for character in chatbot_message:
@@ -374,7 +375,7 @@ def generate(text, history, rag_option, model_option, k=3, top_p=0.6, temperatu
374
  return
375
  except:
376
  pass
377
- """
378
 
379
  #zum Evaluieren:
380
  # custom eli5 criteria
 
347
  print("history/chatbot_rsponse:--------------------------------")
348
  print(history)
349
  print(chatbot_message)
350
+
351
+ """
352
  #Antwort als Stream ausgeben...
353
  for i in range(len(chatbot_message)):
354
  time.sleep(0.03)
 
360
  return
361
  except:
362
  pass
363
+ """
364
+
365
  #Antwort als Stream ausgeben...
366
  history[-1][1] = ""
367
  for character in chatbot_message:
 
375
  return
376
  except:
377
  pass
378
+
379
 
380
  #zum Evaluieren:
381
  # custom eli5 criteria