vladimir.manuylov commited on
Commit
047aecb
·
1 Parent(s): 93b193a

fixing commiting jsons

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def log_run(client_ip: str, seq: str):
69
  rec = {
70
  "ts": datetime.utcnow().isoformat(timespec="seconds"),
71
  "client": client_ip,
72
- "seq_hash": hashlib.sha256(seq.encode()).hexdigest(),
73
  "seq_len": len(seq)
74
  }
75
  (LOG_FOLDER / f"{uuid.uuid4()}.json").write_text(json.dumps(rec))
@@ -81,10 +81,9 @@ scheduler = CommitScheduler(
81
  repo_id="ai-gero/protobind_usage",
82
  repo_type="dataset",
83
  folder_path=str(LOG_FOLDER),
84
- every=300,
85
  token=os.getenv("HF_TOKEN")
86
  )
87
- scheduler.start()
88
  # --- GRADIO APP DEFINITION ---
89
 
90
  # Load models on app startup
 
69
  rec = {
70
  "ts": datetime.utcnow().isoformat(timespec="seconds"),
71
  "client": client_ip,
72
+ "seq": seq,
73
  "seq_len": len(seq)
74
  }
75
  (LOG_FOLDER / f"{uuid.uuid4()}.json").write_text(json.dumps(rec))
 
81
  repo_id="ai-gero/protobind_usage",
82
  repo_type="dataset",
83
  folder_path=str(LOG_FOLDER),
84
+ every=1,
85
  token=os.getenv("HF_TOKEN")
86
  )
 
87
  # --- GRADIO APP DEFINITION ---
88
 
89
  # Load models on app startup
requirements.txt CHANGED
@@ -11,7 +11,7 @@ fair-esm==2.0.0
11
  biopython>=1.80
12
  pysmilesutils @ git+https://github.com/MolecularAI/pysmilesutils.git
13
  FPSim2==0.5.2
14
- huggingface_hub>=0.23.0
15
  einops==0.8.0
16
  easydict>=1.11
17
  tensorboard>=2.14.0
 
11
  biopython>=1.80
12
  pysmilesutils @ git+https://github.com/MolecularAI/pysmilesutils.git
13
  FPSim2==0.5.2
14
+ huggingface_hub
15
  einops==0.8.0
16
  easydict>=1.11
17
  tensorboard>=2.14.0