Chris4K commited on
Commit
2bca17a
1 Parent(s): 07c6a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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
- chat_bot = gr.Interface(fn=callChains , inputs="textbox", outputs=["textbox","textbox","textbox"], title="Conversation Bot with extra")
 
 
 
 
 
 
 
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
  ####################