peterpeter8585 commited on
Commit
aaead94
·
verified ·
1 Parent(s): c832a69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -134,7 +134,13 @@ with gr.Blocks(theme=gr.themes.Soft(), title="PIXAL Assistant (LangChain + GitHu
134
  **LangChain 기반 멀티툴 에이전트**
135
  🧰 DuckDuckGo · Wikipedia · Math · Requests · Python REPL · File · Time
136
  """)
137
- ai1=gr.Chatbot(chat)
 
 
 
 
 
 
138
 
139
  if __name__ == "__main__":
140
- ai1.launch()
 
134
  **LangChain 기반 멀티툴 에이전트**
135
  🧰 DuckDuckGo · Wikipedia · Math · Requests · Python REPL · File · Time
136
  """)
137
+ chatbot = gr.Chatbot(label="PIXAL 대화", height=600)
138
+ msg = gr.Textbox(label="메시지", placeholder="명령 또는 질문을 입력하세요...")
139
+ clear = gr.Button("초기화")
140
+
141
+ msg.submit(chat, [msg, chatbot], [chatbot, chatbot])
142
+ clear.click(lambda: None, None, chatbot, queue=False)
143
+
144
 
145
  if __name__ == "__main__":
146
+ demo.launch()