Vidhi00 commited on
Commit
b6800a3
·
verified ·
1 Parent(s): f575b19

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,7 +129,7 @@ sqlite_agent = create_sql_agent(
129
  verbose=True
130
  )
131
 
132
- conn = sqlite3.connect('/content/ecomm.db')
133
  cursor = conn.cursor()
134
 
135
 
@@ -150,7 +150,7 @@ def def_tool(query: str):
150
  def sql_tool(query: str):
151
  """Executes a SQL query on the e-commerce database and returns the result."""
152
  try:
153
- conn = sqlite3.connect('/content/ecomm.db')
154
  cursor = conn.cursor()
155
  cursor.execute(query)
156
  result = cursor.fetchall()
 
129
  verbose=True
130
  )
131
 
132
+ conn = sqlite3.connect('/ecomm.db')
133
  cursor = conn.cursor()
134
 
135
 
 
150
  def sql_tool(query: str):
151
  """Executes a SQL query on the e-commerce database and returns the result."""
152
  try:
153
+ conn = sqlite3.connect('/ecomm.db')
154
  cursor = conn.cursor()
155
  cursor.execute(query)
156
  result = cursor.fetchall()