ALYYAN commited on
Commit
e7e997a
·
1 Parent(s): 48b3884

Deploying on huggingface

Browse files
Files changed (3) hide show
  1. .dvc/config +4 -0
  2. README.md +1 -0
  3. setup.sh +10 -0
.dvc/config CHANGED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [core]
2
+ remote = gdrive_remote
3
+ ['remote "gdrive_remote"']
4
+ url = gdrive://1_4tTrPSTyZnFT7-E6jvI1p1BTxzV655g
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.19.1
8
  app_file: app.py
 
9
  pinned: false
10
  ---
11
 
 
6
  sdk: gradio
7
  sdk_version: 4.19.1
8
  app_file: app.py
9
+ startup_script: setup.sh
10
  pinned: false
11
  ---
12
 
setup.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Create the directory DVC needs for credentials
4
+ mkdir -p .dvc/tmp
5
+
6
+ # Write the Google Drive credentials from the HF secret into the file
7
+ echo "$GDRIVE_CREDENTIALS_DATA" > .dvc/tmp/gdrive-user-credentials.json
8
+
9
+ # Pull the model file from the default remote (which we set to Google Drive)
10
+ dvc pull artifacts/model_training/model.dvc -f