snajmark commited on
Commit
592276d
·
1 Parent(s): 4abe90f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -65,12 +65,12 @@ def write_logs(message, message_type="Prediction"):
65
  """
66
  Write logs
67
  """
68
- with Repository(local_dir="data", clone_from=dataset_url, use_auth_token=WRITE_TOKEN).commit(commit_message="from private", blocking=False):
69
- with open(dataset_path, "a") as csvfile:
70
- writer = csv.DictWriter(csvfile, fieldnames=["name", "message", "time"])
71
- writer.writerow(
72
- {"name": message_type, "message": message, "time": str(datetime.now())}
73
- )
74
  return
75
 
76
  def predict(x, request: gr.Request):
 
65
  """
66
  Write logs
67
  """
68
+ #with Repository(local_dir="data", clone_from=dataset_url, use_auth_token=WRITE_TOKEN).commit(commit_message="from private", blocking=False):
69
+ # with open(dataset_path, "a") as csvfile:
70
+ # writer = csv.DictWriter(csvfile, fieldnames=["name", "message", "time"])
71
+ # writer.writerow(
72
+ # {"name": message_type, "message": message, "time": str(datetime.now())}
73
+ # )
74
  return
75
 
76
  def predict(x, request: gr.Request):