themissingCRAM commited on
Commit
76fbe38
·
1 Parent(s): e95efe1

testing llm again

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def dummy():
31
 
32
 
33
  @tool
34
- def sql_engine_tool(query: str) -> str:
35
  """
36
  Allows you to perform SQL queries on the table. Returns a string representation of the result.
37
  The table is named 'receipts'. Its description is as follows:
@@ -97,7 +97,7 @@ def init_db():
97
  if __name__ == "__main__":
98
  init_db()
99
  model = HfApiModel(
100
- model_id="HuggingFaceH4/zephyr-7b-beta",
101
  token=os.getenv("my_first_agents_hf_tokens"),
102
  )
103
 
@@ -110,4 +110,5 @@ if __name__ == "__main__":
110
  max_steps=1,
111
  verbosity_level=1,
112
  )
 
113
  GradioUI(agent).launch()
 
31
 
32
 
33
  @tool
34
+ def sql_engine_tool(query: str, engine=engine) -> str:
35
  """
36
  Allows you to perform SQL queries on the table. Returns a string representation of the result.
37
  The table is named 'receipts'. Its description is as follows:
 
97
  if __name__ == "__main__":
98
  init_db()
99
  model = HfApiModel(
100
+ model_id="meta-llama/Meta-Llama-3.1-8B-Instruct",
101
  token=os.getenv("my_first_agents_hf_tokens"),
102
  )
103
 
 
110
  max_steps=1,
111
  verbosity_level=1,
112
  )
113
+ agent.run("What is the average each customer paid?")
114
  GradioUI(agent).launch()