Spaces:
Runtime error
Runtime error
Commit
·
b1eb8e0
1
Parent(s):
e53a2e8
Upload folder using huggingface_hub
Browse files- .env +3 -0
- .gitignore +1 -0
- README.md +3 -9
- app.py +20 -0
- requirements.txt +190 -0
- temp.ipynb +98 -0
.env
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
GIT_USERNAME=aakash0017
|
2 |
+
GIT_TOKEN=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
|
3 |
+
GIT_URL=https://github.com/aakash0017/drvai-beta-deployment
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.env
|
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji: 🐠
|
4 |
-
colorFrom: purple
|
5 |
-
colorTo: red
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.3.0
|
8 |
app_file: app.py
|
9 |
-
|
|
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: drvai-beta-deployment
|
|
|
|
|
|
|
|
|
|
|
3 |
app_file: app.py
|
4 |
+
sdk: gradio
|
5 |
+
sdk_version: 4.1.2
|
6 |
---
|
|
|
|
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import git
|
3 |
+
|
4 |
+
|
5 |
+
username = os.environ['GIT_USERNAME']
|
6 |
+
token = os.environ['GIT_TOKEN']
|
7 |
+
repo_url = os.environ['GIT_URL']
|
8 |
+
|
9 |
+
# Construct the repository URL with the token
|
10 |
+
repo_url_with_token = f'https://{username}:{token}@{repo_url.split("://")[1]}'
|
11 |
+
|
12 |
+
# Clone the repository
|
13 |
+
repo = git.Repo.clone_from(repo_url_with_token, 'deployment_app')
|
14 |
+
|
15 |
+
from deployment_app.conversation import make_conversation
|
16 |
+
import gradio as gr
|
17 |
+
|
18 |
+
demo = gr.ChatInterface(make_conversation).queue()
|
19 |
+
|
20 |
+
demo.launch(share=True)
|
requirements.txt
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiofiles==23.2.1
|
2 |
+
aiohttp==3.8.6
|
3 |
+
wordninja
|
4 |
+
wordninja
|
5 |
+
aiosignal==1.3.1
|
6 |
+
altair==5.1.2
|
7 |
+
annotated-types==0.6.0
|
8 |
+
anyio==3.7.1
|
9 |
+
appnope==0.1.3
|
10 |
+
asttokens==2.4.1
|
11 |
+
async-timeout==4.0.3
|
12 |
+
attrs==23.1.0
|
13 |
+
backoff==2.2.1
|
14 |
+
bcrypt==4.0.1
|
15 |
+
boto3==1.28.84
|
16 |
+
botocore==1.31.84
|
17 |
+
cachetools==5.3.2
|
18 |
+
certifi==2023.7.22
|
19 |
+
charset-normalizer==3.3.2
|
20 |
+
chroma-hnswlib==0.7.3
|
21 |
+
chromadb==0.4.15
|
22 |
+
click==8.1.7
|
23 |
+
colorama==0.4.6
|
24 |
+
coloredlogs==15.0.1
|
25 |
+
comm==0.1.4
|
26 |
+
contourpy==1.1.1
|
27 |
+
cycler==0.12.1
|
28 |
+
dataclasses-json==0.6.1
|
29 |
+
datasets==2.14.6
|
30 |
+
debugpy==1.8.0
|
31 |
+
decorator==5.1.1
|
32 |
+
Deprecated==1.2.14
|
33 |
+
dill==0.3.7
|
34 |
+
dnspython==2.4.2
|
35 |
+
dotenv-python==0.0.1
|
36 |
+
einops==0.7.0
|
37 |
+
encodec==0.1.1
|
38 |
+
exceptiongroup==1.1.3
|
39 |
+
executing==2.0.1
|
40 |
+
fastapi==0.104.1
|
41 |
+
ffmpy==0.3.1
|
42 |
+
filelock==3.13.1
|
43 |
+
flatbuffers==23.5.26
|
44 |
+
fonttools==4.43.1
|
45 |
+
frozenlist==1.4.0
|
46 |
+
fsspec==2023.10.0
|
47 |
+
funcy==2.0
|
48 |
+
google-auth==2.23.4
|
49 |
+
googleapis-common-protos==1.61.0
|
50 |
+
gradio==4.0.2
|
51 |
+
gradio_client==0.7.0
|
52 |
+
grpcio==1.59.2
|
53 |
+
h11==0.14.0
|
54 |
+
httpcore==0.18.0
|
55 |
+
httptools==0.6.1
|
56 |
+
httpx==0.25.0
|
57 |
+
huggingface-hub==0.17.3
|
58 |
+
humanfriendly==10.0
|
59 |
+
idna==3.4
|
60 |
+
importlib-metadata==6.8.0
|
61 |
+
importlib-resources==6.1.0
|
62 |
+
ipykernel==6.26.0
|
63 |
+
ipython==8.17.2
|
64 |
+
jedi==0.19.1
|
65 |
+
Jinja2==3.1.2
|
66 |
+
jmespath==1.0.1
|
67 |
+
joblib==1.3.2
|
68 |
+
jsonpatch==1.33
|
69 |
+
jsonpointer==2.4
|
70 |
+
jsonschema==4.19.2
|
71 |
+
jsonschema-specifications==2023.7.1
|
72 |
+
jupyter_client==8.5.0
|
73 |
+
jupyter_core==5.5.0
|
74 |
+
kiwisolver==1.4.5
|
75 |
+
kubernetes==28.1.0
|
76 |
+
langchain==0.0.327
|
77 |
+
langchainhub==0.1.13
|
78 |
+
langsmith==0.0.56
|
79 |
+
llvmlite==0.41.1
|
80 |
+
loguru==0.7.2
|
81 |
+
markdown-it-py==3.0.0
|
82 |
+
MarkupSafe==2.1.3
|
83 |
+
marshmallow==3.20.1
|
84 |
+
matplotlib==3.8.1
|
85 |
+
matplotlib-inline==0.1.6
|
86 |
+
mdurl==0.1.2
|
87 |
+
monotonic==1.6
|
88 |
+
more-itertools==10.1.0
|
89 |
+
mpmath==1.3.0
|
90 |
+
multidict==6.0.4
|
91 |
+
multiprocess==0.70.15
|
92 |
+
mypy-extensions==1.0.0
|
93 |
+
nest-asyncio==1.5.8
|
94 |
+
networkx==3.2.1
|
95 |
+
nltk==3.8.1
|
96 |
+
numba==0.58.1
|
97 |
+
numpy==1.26.1
|
98 |
+
oauthlib==3.2.2
|
99 |
+
onnxruntime==1.16.1
|
100 |
+
openai==0.28.1
|
101 |
+
openai-whisper @ git+https://github.com/openai/whisper.git@fcfeaf1b61994c071bba62da47d7846933576ac9
|
102 |
+
opentelemetry-api==1.20.0
|
103 |
+
opentelemetry-exporter-otlp-proto-common==1.20.0
|
104 |
+
opentelemetry-exporter-otlp-proto-grpc==1.20.0
|
105 |
+
opentelemetry-proto==1.20.0
|
106 |
+
opentelemetry-sdk==1.20.0
|
107 |
+
opentelemetry-semantic-conventions==0.41b0
|
108 |
+
orjson==3.9.10
|
109 |
+
overrides==7.4.0
|
110 |
+
packaging==23.2
|
111 |
+
pandas==2.1.2
|
112 |
+
parso==0.8.3
|
113 |
+
pexpect==4.8.0
|
114 |
+
Pillow==10.1.0
|
115 |
+
pinecone-client==2.2.4
|
116 |
+
platformdirs==3.11.0
|
117 |
+
posthog==3.0.2
|
118 |
+
prompt-toolkit==3.0.39
|
119 |
+
protobuf==4.25.0
|
120 |
+
psutil==5.9.6
|
121 |
+
ptyprocess==0.7.0
|
122 |
+
pulsar-client==3.3.0
|
123 |
+
pure-eval==0.2.2
|
124 |
+
pyarrow==14.0.0
|
125 |
+
pyasn1==0.5.0
|
126 |
+
pyasn1-modules==0.3.0
|
127 |
+
pydantic==2.4.2
|
128 |
+
pydantic_core==2.10.1
|
129 |
+
pydub==0.25.1
|
130 |
+
Pygments==2.16.1
|
131 |
+
pymongo==4.6.0
|
132 |
+
pyparsing==3.1.1
|
133 |
+
PyPika==0.48.9
|
134 |
+
python-dateutil==2.8.2
|
135 |
+
python-dotenv==1.0.0
|
136 |
+
python-multipart==0.0.6
|
137 |
+
pytz==2023.3.post1
|
138 |
+
PyYAML==6.0.1
|
139 |
+
pyzmq==25.1.1
|
140 |
+
referencing==0.30.2
|
141 |
+
regex==2023.10.3
|
142 |
+
requests==2.31.0
|
143 |
+
requests-oauthlib==1.3.1
|
144 |
+
rich==13.6.0
|
145 |
+
rpds-py==0.10.6
|
146 |
+
rsa==4.9
|
147 |
+
s3transfer==0.7.0
|
148 |
+
safetensors==0.4.0
|
149 |
+
scikit-learn==1.3.2
|
150 |
+
scipy==1.11.3
|
151 |
+
semantic-version==2.10.0
|
152 |
+
sentence-transformers==2.2.2
|
153 |
+
sentencepiece==0.1.99
|
154 |
+
shellingham==1.5.4
|
155 |
+
six==1.16.0
|
156 |
+
sniffio==1.3.0
|
157 |
+
SQLAlchemy==2.0.22
|
158 |
+
stack-data==0.6.3
|
159 |
+
starlette==0.27.0
|
160 |
+
suno-bark @ git+https://github.com/suno-ai/bark.git@773624d26db84278a55aacae9a16d7b25fbccab8
|
161 |
+
sympy==1.12
|
162 |
+
tenacity==8.2.3
|
163 |
+
threadpoolctl==3.2.0
|
164 |
+
tiktoken==0.5.1
|
165 |
+
tokenizers==0.14.1
|
166 |
+
tomlkit==0.12.0
|
167 |
+
toolz==0.12.0
|
168 |
+
torch==2.1.0
|
169 |
+
torchaudio==2.1.0
|
170 |
+
torchvision==0.16.0
|
171 |
+
tornado==6.3.3
|
172 |
+
tqdm==4.66.1
|
173 |
+
traitlets==5.13.0
|
174 |
+
transformers==4.34.1
|
175 |
+
typer==0.9.0
|
176 |
+
types-requests==2.31.0.10
|
177 |
+
typing-inspect==0.9.0
|
178 |
+
typing_extensions==4.8.0
|
179 |
+
tzdata==2023.3
|
180 |
+
urllib3==2.0.7
|
181 |
+
uvicorn==0.23.2
|
182 |
+
uvloop==0.19.0
|
183 |
+
watchfiles==0.21.0
|
184 |
+
wcwidth==0.2.9
|
185 |
+
websocket-client==1.6.4
|
186 |
+
websockets==11.0.3
|
187 |
+
wrapt==1.15.0
|
188 |
+
xxhash==3.4.1
|
189 |
+
yarl==1.9.2
|
190 |
+
zipp==3.17.0
|
temp.ipynb
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 4,
|
6 |
+
"metadata": {},
|
7 |
+
"outputs": [],
|
8 |
+
"source": [
|
9 |
+
"from git import Repo # pip install gitpytho\n"
|
10 |
+
]
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"cell_type": "code",
|
14 |
+
"execution_count": 8,
|
15 |
+
"metadata": {},
|
16 |
+
"outputs": [
|
17 |
+
{
|
18 |
+
"ename": "GitCommandError",
|
19 |
+
"evalue": "Cmd('git') failed due to: exit code(128)\n cmdline: git clone -v -- https://github.com/krishnaadithya/ophthal_llm /Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm\n stderr: 'Cloning into '/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm'...\nfatal: could not read Username for 'https://github.com': Device not configured\n'",
|
20 |
+
"output_type": "error",
|
21 |
+
"traceback": [
|
22 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
23 |
+
"\u001b[0;31mGitCommandError\u001b[0m Traceback (most recent call last)",
|
24 |
+
"\u001b[1;32m/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/temp.ipynb Cell 2\u001b[0m line \u001b[0;36m1\n\u001b[0;32m----> <a href='vscode-notebook-cell:/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/temp.ipynb#W4sZmlsZQ%3D%3D?line=0'>1</a>\u001b[0m Repo\u001b[39m.\u001b[39;49mclone_from(\u001b[39m\"\u001b[39;49m\u001b[39mhttps://github.com/krishnaadithya/ophthal_llm\u001b[39;49m\u001b[39m\"\u001b[39;49m, \u001b[39m\"\u001b[39;49m\u001b[39m/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n",
|
25 |
+
"File \u001b[0;32m/opt/homebrew/lib/python3.11/site-packages/git/repo/base.py:1328\u001b[0m, in \u001b[0;36mRepo.clone_from\u001b[0;34m(cls, url, to_path, progress, env, multi_options, allow_unsafe_protocols, allow_unsafe_options, **kwargs)\u001b[0m\n\u001b[1;32m 1326\u001b[0m \u001b[39mif\u001b[39;00m env \u001b[39mis\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[1;32m 1327\u001b[0m git\u001b[39m.\u001b[39mupdate_environment(\u001b[39m*\u001b[39m\u001b[39m*\u001b[39menv)\n\u001b[0;32m-> 1328\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mcls\u001b[39;49m\u001b[39m.\u001b[39;49m_clone(\n\u001b[1;32m 1329\u001b[0m git,\n\u001b[1;32m 1330\u001b[0m url,\n\u001b[1;32m 1331\u001b[0m to_path,\n\u001b[1;32m 1332\u001b[0m GitCmdObjectDB,\n\u001b[1;32m 1333\u001b[0m progress,\n\u001b[1;32m 1334\u001b[0m multi_options,\n\u001b[1;32m 1335\u001b[0m allow_unsafe_protocols\u001b[39m=\u001b[39;49mallow_unsafe_protocols,\n\u001b[1;32m 1336\u001b[0m allow_unsafe_options\u001b[39m=\u001b[39;49mallow_unsafe_options,\n\u001b[1;32m 1337\u001b[0m \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkwargs,\n\u001b[1;32m 1338\u001b[0m )\n",
|
26 |
+
"File \u001b[0;32m/opt/homebrew/lib/python3.11/site-packages/git/repo/base.py:1237\u001b[0m, in \u001b[0;36mRepo._clone\u001b[0;34m(cls, git, url, path, odb_default_type, progress, multi_options, allow_unsafe_protocols, allow_unsafe_options, **kwargs)\u001b[0m\n\u001b[1;32m 1234\u001b[0m cmdline \u001b[39m=\u001b[39m remove_password_if_present(cmdline)\n\u001b[1;32m 1236\u001b[0m log\u001b[39m.\u001b[39mdebug(\u001b[39m\"\u001b[39m\u001b[39mCmd(\u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m)\u001b[39m\u001b[39m'\u001b[39m\u001b[39ms unused stdout: \u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m\"\u001b[39m, cmdline, stdout)\n\u001b[0;32m-> 1237\u001b[0m finalize_process(proc, stderr\u001b[39m=\u001b[39;49mstderr)\n\u001b[1;32m 1239\u001b[0m \u001b[39m# our git command could have a different working dir than our actual\u001b[39;00m\n\u001b[1;32m 1240\u001b[0m \u001b[39m# environment, hence we prepend its working dir if required\u001b[39;00m\n\u001b[1;32m 1241\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m osp\u001b[39m.\u001b[39misabs(path):\n",
|
27 |
+
"File \u001b[0;32m/opt/homebrew/lib/python3.11/site-packages/git/util.py:453\u001b[0m, in \u001b[0;36mfinalize_process\u001b[0;34m(proc, **kwargs)\u001b[0m\n\u001b[1;32m 451\u001b[0m \u001b[39m\u001b[39m\u001b[39m\"\"\"Wait for the process (clone, fetch, pull or push) and handle its errors accordingly\"\"\"\u001b[39;00m\n\u001b[1;32m 452\u001b[0m \u001b[39m# TODO: No close proc-streams??\u001b[39;00m\n\u001b[0;32m--> 453\u001b[0m proc\u001b[39m.\u001b[39;49mwait(\u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkwargs)\n",
|
28 |
+
"File \u001b[0;32m/opt/homebrew/lib/python3.11/site-packages/git/cmd.py:600\u001b[0m, in \u001b[0;36mGit.AutoInterrupt.wait\u001b[0;34m(self, stderr)\u001b[0m\n\u001b[1;32m 598\u001b[0m errstr \u001b[39m=\u001b[39m read_all_from_possibly_closed_stream(p_stderr)\n\u001b[1;32m 599\u001b[0m log\u001b[39m.\u001b[39mdebug(\u001b[39m\"\u001b[39m\u001b[39mAutoInterrupt wait stderr: \u001b[39m\u001b[39m%r\u001b[39;00m\u001b[39m\"\u001b[39m \u001b[39m%\u001b[39m (errstr,))\n\u001b[0;32m--> 600\u001b[0m \u001b[39mraise\u001b[39;00m GitCommandError(remove_password_if_present(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39margs), status, errstr)\n\u001b[1;32m 601\u001b[0m \u001b[39mreturn\u001b[39;00m status\n",
|
29 |
+
"\u001b[0;31mGitCommandError\u001b[0m: Cmd('git') failed due to: exit code(128)\n cmdline: git clone -v -- https://github.com/krishnaadithya/ophthal_llm /Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm\n stderr: 'Cloning into '/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm'...\nfatal: could not read Username for 'https://github.com': Device not configured\n'"
|
30 |
+
]
|
31 |
+
}
|
32 |
+
],
|
33 |
+
"source": [
|
34 |
+
"Repo.clone_from(\"https://github.com/krishnaadithya/ophthal_llm\", \"/Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/ophthal_llm\", )"
|
35 |
+
]
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"cell_type": "code",
|
39 |
+
"execution_count": 3,
|
40 |
+
"metadata": {},
|
41 |
+
"outputs": [
|
42 |
+
{
|
43 |
+
"name": "stdout",
|
44 |
+
"output_type": "stream",
|
45 |
+
"text": [
|
46 |
+
"Repository cloned to /Users/aakashbhatnagar/Documents/masters/drvai-beta-deployment/deployment_app\n"
|
47 |
+
]
|
48 |
+
}
|
49 |
+
],
|
50 |
+
"source": [
|
51 |
+
"import git\n",
|
52 |
+
"\n",
|
53 |
+
"# Replace 'your_username' with your GitHub username\n",
|
54 |
+
"# Replace 'your_token' with your personal access token\n",
|
55 |
+
"# Replace 'repo_url' with the URL of your private repository\n",
|
56 |
+
"username = 'aakash0017'\n",
|
57 |
+
"token = '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'\n",
|
58 |
+
"repo_url = 'https://github.com/aakash0017/drvai-beta-deployment'\n",
|
59 |
+
"\n",
|
60 |
+
"# Construct the repository URL with the token\n",
|
61 |
+
"repo_url_with_token = f'https://{username}:{token}@{repo_url.split(\"://\")[1]}'\n",
|
62 |
+
"\n",
|
63 |
+
"# Clone the repository\n",
|
64 |
+
"repo = git.Repo.clone_from(repo_url_with_token, 'deployment_app')\n",
|
65 |
+
"\n",
|
66 |
+
"print(f\"Repository cloned to {repo.working_dir}\")\n"
|
67 |
+
]
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"cell_type": "code",
|
71 |
+
"execution_count": null,
|
72 |
+
"metadata": {},
|
73 |
+
"outputs": [],
|
74 |
+
"source": []
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"metadata": {
|
78 |
+
"kernelspec": {
|
79 |
+
"display_name": "Python 3",
|
80 |
+
"language": "python",
|
81 |
+
"name": "python3"
|
82 |
+
},
|
83 |
+
"language_info": {
|
84 |
+
"codemirror_mode": {
|
85 |
+
"name": "ipython",
|
86 |
+
"version": 3
|
87 |
+
},
|
88 |
+
"file_extension": ".py",
|
89 |
+
"mimetype": "text/x-python",
|
90 |
+
"name": "python",
|
91 |
+
"nbconvert_exporter": "python",
|
92 |
+
"pygments_lexer": "ipython3",
|
93 |
+
"version": "3.11.3"
|
94 |
+
}
|
95 |
+
},
|
96 |
+
"nbformat": 4,
|
97 |
+
"nbformat_minor": 2
|
98 |
+
}
|