Update app.py
Browse files
app.py
CHANGED
@@ -268,9 +268,9 @@ def topic_sale_inform (text):
|
|
268 |
####
|
269 |
|
270 |
def callChains(current_message):
|
271 |
-
sentiment_analysis_result = pipeline_predict_sentiment(
|
272 |
-
topic_sale_inform = topic_sale_inform(
|
273 |
-
final_answer = pipeline_predict_chat(
|
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")
|
|
|
268 |
####
|
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")
|