fudii0921 commited on
Commit
56b2e45
·
verified ·
1 Parent(s): 582f854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -60,6 +60,19 @@ function createGradioAnimation() {
60
  return 'Animation created';
61
  }
62
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  def get_rounrobin():
65
  select_one_data_query = "select api from agentic_apis_count order by counts ASC"
@@ -74,19 +87,6 @@ def get_api_keys():
74
  os.environ["GROQ_API_KEY"] = token
75
 
76
  return token
77
-
78
- load_dotenv(verbose=True)
79
-
80
- conn = mysql.connector.connect(
81
- host=os.environ.get("HOST"),
82
- user=os.environ.get("USER_NAME"),
83
- password=os.environ.get("PASSWORD"),
84
- port=os.environ.get("PORT"),
85
- database=os.environ.get("DB"),
86
- ssl_disabled=True
87
- )
88
-
89
- cursor = conn.cursor(dictionary=True)
90
 
91
  get_api_keys()
92
 
 
60
  return 'Animation created';
61
  }
62
  """
63
+
64
+ load_dotenv(verbose=True)
65
+
66
+ conn = mysql.connector.connect(
67
+ host=os.environ.get("HOST"),
68
+ user=os.environ.get("USER_NAME"),
69
+ password=os.environ.get("PASSWORD"),
70
+ port=os.environ.get("PORT"),
71
+ database=os.environ.get("DB"),
72
+ ssl_disabled=True
73
+ )
74
+
75
+ cursor = conn.cursor(dictionary=True)
76
 
77
  def get_rounrobin():
78
  select_one_data_query = "select api from agentic_apis_count order by counts ASC"
 
87
  os.environ["GROQ_API_KEY"] = token
88
 
89
  return token
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  get_api_keys()
92