Spaces:
Running
Running
change pipeline
Browse files- .github/workflows/pipeline.yaml +25 -10
- README.md +6 -21
- index.html +0 -12
.github/workflows/pipeline.yaml
CHANGED
@@ -80,23 +80,38 @@ jobs:
|
|
80 |
needs: extraction_train_modeling
|
81 |
environment: Production
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
steps:
|
84 |
- name: Set global directory
|
85 |
run: git config --global --add safe.directory /github/workspace
|
86 |
|
87 |
- uses: actions/checkout@v3
|
88 |
with:
|
89 |
-
|
90 |
-
|
91 |
|
92 |
-
- name:
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
run: |
|
98 |
-
git config --local user.email "[email protected]"
|
99 |
-
git config --local user.name "belajarqywok"
|
100 |
git add -A
|
101 |
-
git commit -m "Model Deployment"
|
|
|
|
|
|
|
102 |
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main --force
|
|
|
80 |
needs: extraction_train_modeling
|
81 |
environment: Production
|
82 |
|
83 |
+
env:
|
84 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
85 |
+
SPACE_NAME: cryptocurrency_prediction
|
86 |
+
HF_USERNAME: qywok
|
87 |
+
|
88 |
steps:
|
89 |
- name: Set global directory
|
90 |
run: git config --global --add safe.directory /github/workspace
|
91 |
|
92 |
- uses: actions/checkout@v3
|
93 |
with:
|
94 |
+
persist-credentials: false
|
95 |
+
fetch-depth: 1000
|
96 |
|
97 |
+
- name: Check git status
|
98 |
+
run: git status
|
99 |
+
|
100 |
+
- name: Configure git
|
101 |
+
run: |
|
102 |
+
git config --local user.email "[email protected]"
|
103 |
+
git config --local user.name "qywok"
|
104 |
+
|
105 |
+
- name: Pull changes from remote
|
106 |
+
run: |
|
107 |
+
git pull https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main || \
|
108 |
+
(git merge --strategy-option theirs)
|
109 |
+
|
110 |
+
- name: Add and commit changes
|
111 |
run: |
|
|
|
|
|
112 |
git add -A
|
113 |
+
git diff-index --quiet HEAD || git commit -m "Model Deployment"
|
114 |
+
|
115 |
+
- name: Push to Hugging Face
|
116 |
+
run: |
|
117 |
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main --force
|
README.md
CHANGED
@@ -1,24 +1,9 @@
|
|
1 |
-
<h1 align="center">Data Mining Assignment (Group 5)</h1>
|
2 |
-
<p align="center">Cryptocurrency prediction using LSTM (Long Short Term Memory)</p>
|
3 |
-
<hr />
|
4 |
-
<h3>Members:</h3>
|
5 |
-
<ul>
|
6 |
-
<li><b>Aditya Virgi Adam Rasyid (202143501517)</b></li>
|
7 |
-
<li><b>Al-Fariqy Raihan Azhwar (202143501514)</b></li>
|
8 |
-
<li><b>Dafa Rezha Alfarizi (202143501546)</b></li>
|
9 |
-
<li><b>Dyana Eka Putri (202143501529)</b></li>
|
10 |
-
<li><b>Muhamad Zulfadli (202143501541)</b></li>
|
11 |
-
</ul>
|
12 |
-
<hr />
|
13 |
-
<p align="center">
|
14 |
-
<img src="./diagram/cryptocurrency_prediction.jpg"/>
|
15 |
-
</p>
|
16 |
-
|
17 |
---
|
18 |
-
title:
|
19 |
-
emoji:
|
20 |
-
colorFrom:
|
21 |
-
colorTo:
|
22 |
-
sdk:
|
|
|
23 |
pinned: false
|
24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Cryptocurrency Prediction
|
3 |
+
emoji: π
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: pink
|
6 |
+
sdk: docker
|
7 |
+
python_version: "3.10"
|
8 |
pinned: false
|
9 |
---
|
index.html
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<title>Crypto Prediction</title>
|
8 |
-
</head>
|
9 |
-
<body>
|
10 |
-
<h1>On Progress...</h1>
|
11 |
-
</body>
|
12 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|