gauravlochab commited on
Commit
bf4bc87
·
1 Parent(s): a98174f

refactor: Update cron schedule and workflow_dispatch in restart_hf_space.yaml

Browse files
.github/workflows/restart_hf_space.yaml CHANGED
@@ -2,7 +2,8 @@ name: Restart Hugging Face Space
2
 
3
  on:
4
  schedule:
5
- - cron: '*/15 * * * *' # Runs every 30 minutes
 
6
 
7
  jobs:
8
  restart-space:
@@ -19,7 +20,7 @@ jobs:
19
  - name: Install dependencies
20
  run: |
21
  python -m pip install --upgrade pip
22
- pip install huggingface-hub
23
 
24
  - name: Restart Hugging Face Space
25
  env:
 
2
 
3
  on:
4
  schedule:
5
+ - cron: '*/20 * * * *'
6
+ workflow_dispatch: # Runs every 30 minutes
7
 
8
  jobs:
9
  restart-space:
 
20
  - name: Install dependencies
21
  run: |
22
  python -m pip install --upgrade pip
23
+ pip install huggingface_hub
24
 
25
  - name: Restart Hugging Face Space
26
  env:
app_trans_new.py CHANGED
@@ -312,7 +312,7 @@ def create_transcation_visualizations():
312
 
313
  # Get Monday indices for tick positions
314
  monday_indices = [i for i, date in enumerate(date_objects) if date.dayofweek == 0]
315
- monday_labels = [date_objects[i].strftime('%Y-%m-%d') for i in monday_indices]
316
 
317
  # Add traces for each series
318
  fig.add_trace(go.Bar(
 
312
 
313
  # Get Monday indices for tick positions
314
  monday_indices = [i for i, date in enumerate(date_objects) if date.dayofweek == 0]
315
+ monday_labels = [date_objects[i].strftime('%m-%d') for i in monday_indices]
316
 
317
  # Add traces for each series
318
  fig.add_trace(go.Bar(