Update app.py
Browse files
app.py
CHANGED
@@ -277,7 +277,14 @@ def callChains(current_message):
|
|
277 |
final_answer = func(current_message)
|
278 |
return final_answer, sentiment_analysis_result, topic_sale_inform_result
|
279 |
|
280 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
# create a public link, set `share=True` in `launch()
|
282 |
chat_bot.launch()
|
283 |
####################
|
|
|
277 |
final_answer = func(current_message)
|
278 |
return final_answer, sentiment_analysis_result, topic_sale_inform_result
|
279 |
|
280 |
+
|
281 |
+
###
|
282 |
+
current_message_inputfield = gr.Textbox(label="Gib hier eine Nachricht ein")
|
283 |
+
final_answer_inputfield = gr.Textbox(label="Antwort ")
|
284 |
+
sentiment_analysis_result_inputfield = gr.Textbox(label="Sentiment ")
|
285 |
+
topic_sale_inform_result_inputfield = gr.Textbox(label="Thema ")
|
286 |
+
|
287 |
+
chat_bot = gr.Interface(fn=callChains , inputs=current_message_inputfield, outputs=[final_answer_inputfield,sentiment_analysis_result_inputfield,topic_sale_inform_result_inputfield], title="Conversation Bot with extra")
|
288 |
# create a public link, set `share=True` in `launch()
|
289 |
chat_bot.launch()
|
290 |
####################
|