K00B404 commited on
Commit
a5b6475
·
verified ·
1 Parent(s): 5ecc11a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -69,6 +69,7 @@ def init_db(file='logs.db'):
69
  )''')
70
  conn.commit()
71
  conn.close()
 
72
 
73
  # Log a request
74
  def log_request(prompt, is_negative, steps, cfg_scale, sampler, seed, strength, use_dev,
@@ -94,7 +95,7 @@ API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-
94
  timeout = 100
95
 
96
 
97
- init_db()
98
 
99
  fetch_logs(db_file_path)
100
 
 
69
  )''')
70
  conn.commit()
71
  conn.close()
72
+ print("table made")
73
 
74
  # Log a request
75
  def log_request(prompt, is_negative, steps, cfg_scale, sampler, seed, strength, use_dev,
 
95
  timeout = 100
96
 
97
 
98
+ init_db(db_file_path)
99
 
100
  fetch_logs(db_file_path)
101