CognitiveScience commited on
Commit
517d75b
1 Parent(s): 9b6d50f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ repo = huggingface_hub.Repository(
31
  repo.git_pull()
32
 
33
  # Set db to latest
34
- #shutil.copyfile("./data/reviews02.db", DB_FILE)
35
 
36
  # Create table if it doesn't already exist
37
 
@@ -117,7 +117,7 @@ with gr.Blocks(css=css) as demo:
117
  load_data()
118
  #return "Hello " + name + "!"
119
  def backup_db():
120
- shutil.copyfile(DB_FILE, "./data/reviews.db")
121
  db = sqlite3.connect(DB_FILE)
122
  reviews = db.execute("SELECT * FROM reviews").fetchall()
123
  pd.DataFrame(reviews).to_csv("./reviews.csv", index=False)
 
31
  repo.git_pull()
32
 
33
  # Set db to latest
34
+ #shutil.copyfile("./data/reviews01.db", DB_FILE)
35
 
36
  # Create table if it doesn't already exist
37
 
 
117
  load_data()
118
  #return "Hello " + name + "!"
119
  def backup_db():
120
+ shutil.copyfile(DB_FILE, "./reviews02.db")
121
  db = sqlite3.connect(DB_FILE)
122
  reviews = db.execute("SELECT * FROM reviews").fetchall()
123
  pd.DataFrame(reviews).to_csv("./reviews.csv", index=False)