Chris4K commited on
Commit
3260d32
1 Parent(s): bd374fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -269,9 +269,9 @@ def topic_sale_inform (text):
269
 
270
  def callChains(current_message):
271
  sentiment_analysis_result = pipeline_predict_sentiment(current_message)
272
- topic_sale_inform = topic_sale_inform(current_message)
273
  final_answer = pipeline_predict_chat(current_message)
274
- return final_answer, sentiment_analysis_result, topic_sale_inform
275
 
276
  chat_bot = gr.Interface(fn=callChains , inputs="textbox", outputs=["textbox","textbox","textbox"], title="Conversation Bot with extra")
277
  # create a public link, set `share=True` in `launch()
 
269
 
270
  def callChains(current_message):
271
  sentiment_analysis_result = pipeline_predict_sentiment(current_message)
272
+ topic_sale_inform_result = topic_sale_inform(current_message)
273
  final_answer = pipeline_predict_chat(current_message)
274
+ return final_answer, sentiment_analysis_result, topic_sale_inform_result
275
 
276
  chat_bot = gr.Interface(fn=callChains , inputs="textbox", outputs=["textbox","textbox","textbox"], title="Conversation Bot with extra")
277
  # create a public link, set `share=True` in `launch()