peterpeter8585 commited on
Commit
fbfc146
·
verified ·
1 Parent(s): d167a15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -162,12 +162,15 @@ with gr.Blocks(theme=gr.themes.Soft(), title="PIXAL Assistant (LangChain + GitHu
162
  **LangChain 기반 멀티툴 에이전트**
163
  🧰 DuckDuckGo · Wikipedia · Math · Requests · Python REPL · File · Time
164
  """)
165
- chatbot = gr.Chatbot(label="PIXAL 대화", height=600)
166
- msg = gr.Textbox(label="메시지", placeholder="명령 또는 질문을 입력하세요...")
167
- clear = gr.Button("초기화")
168
-
169
- msg.submit(chat, [msg, chatbot], [chatbot, chatbot])
170
- clear.click(lambda: None, None, chatbot, queue=False)
 
 
 
171
 
172
  if __name__ == "__main__":
173
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
162
  **LangChain 기반 멀티툴 에이전트**
163
  🧰 DuckDuckGo · Wikipedia · Math · Requests · Python REPL · File · Time
164
  """)
165
+ chatbot = gr.Chatbot(
166
+ label="PIXAL(Pimary Interactive X-ternal Assistant with multi Language) 1.0",
167
+ show_copy_button=True,
168
+ layout="panel"
169
+ )
170
+ ai1=gr.ChatInterface(
171
+ chat,
172
+ chatbot=chatbot,
173
+ )
174
 
175
  if __name__ == "__main__":
176
+ ai1.launch()