Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
if __name__ == "__main__":
|
| 140 |
-
|
|
|
|
| 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()
|