CognitiveScience commited on
Commit
47d502c
1 Parent(s): e5308ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ repo = huggingface_hub.Repository(
29
  repo.git_pull()
30
 
31
  # Set db to latest
32
- shutil.copyfile("./data/reviews2.db", DB_FILE)
33
 
34
  # Create table if it doesn't already exist
35
 
@@ -95,7 +95,7 @@ with gr.Blocks(css=css,api_name=["/ccogsphere"]) as demo:
95
  #return "Hello " + name + "!"
96
 
97
  def backup_db():
98
- shutil.copyfile(DB_FILE, "./reviews.db")
99
  db = sqlite3.connect(DB_FILE)
100
  reviews = db.execute("SELECT * FROM reviews").fetchall()
101
  pd.DataFrame(reviews).to_csv("./reviews1.csv", index=False)
 
29
  repo.git_pull()
30
 
31
  # Set db to latest
32
+ shutil.copyfile("./data/reviews1.db", DB_FILE)
33
 
34
  # Create table if it doesn't already exist
35
 
 
95
  #return "Hello " + name + "!"
96
 
97
  def backup_db():
98
+ shutil.copyfile(DB_FILE, "./reviews3.db")
99
  db = sqlite3.connect(DB_FILE)
100
  reviews = db.execute("SELECT * FROM reviews").fetchall()
101
  pd.DataFrame(reviews).to_csv("./reviews1.csv", index=False)