TA commited on
Commit
73d1565
·
1 Parent(s): 4ba28c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -81,8 +81,6 @@ Expand your imagination and broaden your horizons with LLM. Welcome to **{TITLE}
81
  chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
82
  textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
83
 
84
- chat_interface = gr.ChatInterface(test_preview_chatbot, chatbot=chatbot_preview, textbox=textbox_preview)
85
-
86
- iface = gr.Interface(chat_interface, title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
87
 
88
  iface.launch(share=True)
 
81
  chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
82
  textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
83
 
84
+ iface = gr.Interface(fn=test_preview_chatbot, inputs=chatbot_preview, outputs=textbox_preview, title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
 
 
85
 
86
  iface.launch(share=True)