-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.bat
More file actions
69 lines (59 loc) · 1.81 KB
/
setup_github.bat
File metadata and controls
69 lines (59 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
echo ================================================
echo Git Repository Setup for Streamlit Deployment
echo ================================================
echo.
where git >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Git is not installed!
echo Please download and install Git from: https://git-scm.com/download/win
pause
exit /b 1
)
echo Git is installed. Proceeding with setup...
echo.
echo [1/6] Initializing Git repository...
git init
echo [2/6] Adding files to Git...
git add .
echo [3/6] Creating initial commit...
git commit -m "Initial commit: ECG classifier deployment"
echo.
echo [4/6] Using your GitHub repository:
echo https://github.com/mohamedalmansoury/New_ecg_classiification.git
echo.
echo [5/6] Adding remote and pushing to GitHub...
git remote add origin https://github.com/mohamedalmansoury/New_ecg_classiification.git
git branch -M main
echo.
echo Pushing to GitHub (you may need to authenticate)...
git push -u origin main
if %ERRORLEVEL% EQU 0 (
echo.
echo ================================================
echo SUCCESS! Repository pushed to GitHub
echo ================================================
echo.
echo Next steps:
echo 1. Go to https://share.streamlit.io/
echo 2. Sign in with GitHub
echo 3. Click "New app"
echo 4. Select: mohamedalmansoury/New_ecg_classiification
echo 5. Main file: app.py
echo 6. Click "Deploy"
echo.
echo Your app will be at:
echo https://mohamedalmansoury-new-ecg-classiification-app-xyz.streamlit.app
echo.
) else (
echo.
echo ERROR: Failed to push to GitHub
echo.
echo Possible issues:
echo - Repository not created yet
echo - Authentication failed
echo - Model files too large (need Git LFS)
echo.
echo For large files, see DEPLOYMENT_GUIDE.md
)
pause