Spaces:
Running
Running
chg
Browse files
app.py
CHANGED
@@ -66,10 +66,6 @@ def predict(message, history):
|
|
66 |
gpt_response = model.invoke(history_langchain_format)
|
67 |
return gpt_response.content
|
68 |
|
69 |
-
demo = gr.ChatInterface(
|
70 |
-
predict,
|
71 |
-
type="messages"
|
72 |
-
)
|
73 |
|
74 |
# setup agents
|
75 |
|
@@ -109,5 +105,10 @@ builder.add_conditional_edges(
|
|
109 |
builder.add_edge("tools", "assistant")
|
110 |
alfred = builder.compile()
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
demo.launch()
|
|
|
66 |
gpt_response = model.invoke(history_langchain_format)
|
67 |
return gpt_response.content
|
68 |
|
|
|
|
|
|
|
|
|
69 |
|
70 |
# setup agents
|
71 |
|
|
|
105 |
builder.add_edge("tools", "assistant")
|
106 |
alfred = builder.compile()
|
107 |
|
108 |
+
demo = gr.ChatInterface(
|
109 |
+
predict,
|
110 |
+
type="messages"
|
111 |
+
)
|
112 |
+
|
113 |
|
114 |
demo.launch()
|