Chris4K commited on
Commit
9c30159
1 Parent(s): 157c212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -398,19 +398,20 @@ def topic_sale_inform (text):
398
  ####
399
  #conversation = Conversation("Welcome")
400
 
401
- def callChains(current_message):
402
  #final_answer = generate(current_message, 1.0, 256, 0.9, 1.0)
403
  sentiment_analysis_result = pipeline_predict_sentiment(current_message)
404
  topic_sale_inform_result = topic_sale_inform(current_message)
405
  #conversation.append_response("The Big lebowski.")
406
  #conversation.add_user_input("Is it good?")
407
- final_answer = func(current_message)
 
408
  return final_answer, sentiment_analysis_result, topic_sale_inform_result
409
 
410
 
411
  ###
412
  current_message_inputfield = gr.Textbox(lines=5,max_lines=6,label="Gib hier eine Nachricht ein")
413
- final_answer_inputfield = gr.Textbox(label="Antwort ")
414
  sentiment_analysis_result_inputfield = gr.Textbox(label="Sentiment ")
415
  topic_sale_inform_result_inputfield = gr.Textbox(label="Thema ")
416
 
 
398
  ####
399
  #conversation = Conversation("Welcome")
400
 
401
+ def callChains(current_message,max_length,length_penalty,no_repeat_ngram_size,num_beams,language):
402
  #final_answer = generate(current_message, 1.0, 256, 0.9, 1.0)
403
  sentiment_analysis_result = pipeline_predict_sentiment(current_message)
404
  topic_sale_inform_result = topic_sale_inform(current_message)
405
  #conversation.append_response("The Big lebowski.")
406
  #conversation.add_user_input("Is it good?")
407
+ #final_answer = func(current_message)
408
+ final_answer = solve(current_message,max_length,length_penalty,no_repeat_ngram_size,num_beams,language)
409
  return final_answer, sentiment_analysis_result, topic_sale_inform_result
410
 
411
 
412
  ###
413
  current_message_inputfield = gr.Textbox(lines=5,max_lines=6,label="Gib hier eine Nachricht ein")
414
+ final_answer_inputfield = gr.Textbox(label="Antwort ", placeholder="Hier kommt die Antwort hin ...")
415
  sentiment_analysis_result_inputfield = gr.Textbox(label="Sentiment ")
416
  topic_sale_inform_result_inputfield = gr.Textbox(label="Thema ")
417