Update app.py
Browse files
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 |
-
|
273 |
final_answer = pipeline_predict_chat(current_message)
|
274 |
-
return final_answer, sentiment_analysis_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()
|
|
|
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()
|