Synnove commited on
Commit
2b35f1c
·
verified ·
1 Parent(s): 46c9588

Try InferenceClientModel()

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
6
- from smolagents import SmolAgent, Tool, LLMFunction
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
@@ -17,6 +17,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
17
  #LLM
18
  llm = LLMFunction.from_local_model("mistralai/Mistral-7B-Instruct-v0.2")
19
 
 
 
 
20
  #Agent
21
  smolAgent = SmolAgent(llm=llm, tools = [])
22
 
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ from smolagents import CodeAgent, InferenceClientModel
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
 
17
  #LLM
18
  llm = LLMFunction.from_local_model("mistralai/Mistral-7B-Instruct-v0.2")
19
 
20
+ #Model
21
+ model = InferenceClientModel() #D
22
+
23
  #Agent
24
  smolAgent = SmolAgent(llm=llm, tools = [])
25