Skip to content

Commit b2f3e70

Browse files
authored
Fix gradio-client.mdx
1 parent e6f4bfb commit b2f3e70

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

units/en/unit2/gradio-client.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ try:
9494
model = InferenceClientModel()
9595
agent = CodeAgent(tools=[*tools], model=model)
9696

97-
def call_agent(message, history):
98-
return str(agent.run(message))
99-
100-
10197
demo = gr.ChatInterface(
10298
fn=lambda message, history: str(agent.run(message)),
10399
type="messages",

0 commit comments

Comments
 (0)