palbha commited on
Commit
f9b3e99
·
verified ·
1 Parent(s): 3082f86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  # Import necessary libraries
2
  import gradio as gr
3
- from smolagents import Agent # Replace with your actual import if different
4
 
5
  # Step 1: Set up your smolagents agent
6
  def create_agent():
@@ -9,7 +9,7 @@ def create_agent():
9
  Adjust parameters like model type or configuration as needed.
10
  """
11
  # For example, we initialize an Agent with a sample model
12
- agent = Agent(model=HfApiModel(model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/')) # Change arguments as per your agent configuration
13
  return agent
14
 
15
  # Create the agent instance once so that it persists across user interactions
 
1
  # Import necessary libraries
2
  import gradio as gr
3
+ from smolagents import CodeAgent # Replace with your actual import if different
4
 
5
  # Step 1: Set up your smolagents agent
6
  def create_agent():
 
9
  Adjust parameters like model type or configuration as needed.
10
  """
11
  # For example, we initialize an Agent with a sample model
12
+ agent = ACodeAgent(tools=[], model=HfApiModel(model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/') # Change arguments as per your agent configuration
13
  return agent
14
 
15
  # Create the agent instance once so that it persists across user interactions