Spaces:
Runtime error
Runtime error
Add application files
Browse files
README.md
CHANGED
@@ -133,6 +133,10 @@ Notice how the contents of app.py only contains the exported cells from this not
|
|
133 |
[0;34m[0m[0;31m# %% auto 0[0m[0;34m[0m
|
134 |
[0;34m[0m[0m__all__[0m [0;34m=[0m [0;34m[[0m[0;34m'iface'[0m[0;34m,[0m [0;34m'size'[0m[0;34m][0m[0;34m[0m
|
135 |
[0;34m[0m[0;34m[0m
|
|
|
|
|
|
|
|
|
136 |
[0;34m[0m[0;31m# %% app.ipynb 7[0m[0;34m[0m
|
137 |
[0;34m[0m[0;32mdef[0m [0msize[0m[0;34m([0m[0mrepo[0m[0;34m:[0m[0mstr[0m[0;34m)[0m[0;34m:[0m[0;34m[0m
|
138 |
[0;34m[0m [0;34m"Returns the size in GB of a HuggingFace Dataset."[0m[0;34m[0m
|
@@ -169,9 +173,10 @@ git add -A; git commit -m "Add application files"; git push
|
|
169 |
|
170 |
## 5. Voilà! Enjoy your Gradio App
|
171 |
|
172 |
-
After a couple of minutes, you will see your app published!
|
173 |
|
174 |
|
175 |
```
|
176 |
-
|
|
|
177 |
```
|
|
|
133 |
[0;34m[0m[0;31m# %% auto 0[0m[0;34m[0m
|
134 |
[0;34m[0m[0m__all__[0m [0;34m=[0m [0;34m[[0m[0;34m'iface'[0m[0;34m,[0m [0;34m'size'[0m[0;34m][0m[0;34m[0m
|
135 |
[0;34m[0m[0;34m[0m
|
136 |
+
[0;34m[0m[0;31m# %% app.ipynb 6[0m[0;34m[0m
|
137 |
+
[0;34m[0m[0;32mimport[0m [0mgradio[0m [0;32mas[0m [0mgr[0m[0;34m[0m
|
138 |
+
[0;34m[0m[0;32mfrom[0m [0mfastcore[0m[0;34m.[0m[0mnet[0m [0;32mimport[0m [0murljson[0m[0;34m,[0m [0mHTTPError[0m[0;34m[0m
|
139 |
+
[0;34m[0m[0;34m[0m
|
140 |
[0;34m[0m[0;31m# %% app.ipynb 7[0m[0;34m[0m
|
141 |
[0;34m[0m[0;32mdef[0m [0msize[0m[0;34m([0m[0mrepo[0m[0;34m:[0m[0mstr[0m[0;34m)[0m[0;34m:[0m[0;34m[0m
|
142 |
[0;34m[0m [0;34m"Returns the size in GB of a HuggingFace Dataset."[0m[0;34m[0m
|
|
|
173 |
|
174 |
## 5. Voilà! Enjoy your Gradio App
|
175 |
|
176 |
+
After a couple of minutes, you will see your app published! This app is published at https://huggingface.co/spaces/hamel/hfspace_demo.
|
177 |
|
178 |
|
179 |
```
|
180 |
+
#you can ignore this cell
|
181 |
+
_ = !./update.sh;
|
182 |
```
|
app.ipynb
CHANGED
@@ -265,6 +265,10 @@
|
|
265 |
"\u001b[0;34m\u001b[0m\u001b[0;31m# %% auto 0\u001b[0m\u001b[0;34m\u001b[0m\n",
|
266 |
"\u001b[0;34m\u001b[0m\u001b[0m__all__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m'iface'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'size'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\n",
|
267 |
"\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\n",
|
|
|
|
|
|
|
|
|
268 |
"\u001b[0;34m\u001b[0m\u001b[0;31m# %% app.ipynb 7\u001b[0m\u001b[0;34m\u001b[0m\n",
|
269 |
"\u001b[0;34m\u001b[0m\u001b[0;32mdef\u001b[0m \u001b[0msize\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrepo\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\n",
|
270 |
"\u001b[0;34m\u001b[0m \u001b[0;34m\"Returns the size in GB of a HuggingFace Dataset.\"\u001b[0m\u001b[0;34m\u001b[0m\n",
|
@@ -342,7 +346,7 @@
|
|
342 |
"id": "9b20ff94-6842-4078-9ec1-be740944e721",
|
343 |
"metadata": {},
|
344 |
"source": [
|
345 |
-
"After a couple of minutes, you will see your app published! "
|
346 |
]
|
347 |
},
|
348 |
{
|
@@ -351,7 +355,10 @@
|
|
351 |
"id": "958174fe-537e-4635-90b8-22ac11eae396",
|
352 |
"metadata": {},
|
353 |
"outputs": [],
|
354 |
-
"source": [
|
|
|
|
|
|
|
355 |
}
|
356 |
],
|
357 |
"metadata": {
|
|
|
265 |
"\u001b[0;34m\u001b[0m\u001b[0;31m# %% auto 0\u001b[0m\u001b[0;34m\u001b[0m\n",
|
266 |
"\u001b[0;34m\u001b[0m\u001b[0m__all__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m'iface'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'size'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\n",
|
267 |
"\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\n",
|
268 |
+
"\u001b[0;34m\u001b[0m\u001b[0;31m# %% app.ipynb 6\u001b[0m\u001b[0;34m\u001b[0m\n",
|
269 |
+
"\u001b[0;34m\u001b[0m\u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mgr\u001b[0m\u001b[0;34m\u001b[0m\n",
|
270 |
+
"\u001b[0;34m\u001b[0m\u001b[0;32mfrom\u001b[0m \u001b[0mfastcore\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnet\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0murljson\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mHTTPError\u001b[0m\u001b[0;34m\u001b[0m\n",
|
271 |
+
"\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\n",
|
272 |
"\u001b[0;34m\u001b[0m\u001b[0;31m# %% app.ipynb 7\u001b[0m\u001b[0;34m\u001b[0m\n",
|
273 |
"\u001b[0;34m\u001b[0m\u001b[0;32mdef\u001b[0m \u001b[0msize\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrepo\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\n",
|
274 |
"\u001b[0;34m\u001b[0m \u001b[0;34m\"Returns the size in GB of a HuggingFace Dataset.\"\u001b[0m\u001b[0;34m\u001b[0m\n",
|
|
|
346 |
"id": "9b20ff94-6842-4078-9ec1-be740944e721",
|
347 |
"metadata": {},
|
348 |
"source": [
|
349 |
+
"After a couple of minutes, you will see your app published! This app is published at https://huggingface.co/spaces/hamel/hfspace_demo."
|
350 |
]
|
351 |
},
|
352 |
{
|
|
|
355 |
"id": "958174fe-537e-4635-90b8-22ac11eae396",
|
356 |
"metadata": {},
|
357 |
"outputs": [],
|
358 |
+
"source": [
|
359 |
+
"#you can ignore this cell\n",
|
360 |
+
"_ = !./update.sh;"
|
361 |
+
]
|
362 |
}
|
363 |
],
|
364 |
"metadata": {
|
app.md
CHANGED
@@ -121,6 +121,10 @@ Notice how the contents of app.py only contains the exported cells from this not
|
|
121 |
[0;34m[0m[0;31m# %% auto 0[0m[0;34m[0m
|
122 |
[0;34m[0m[0m__all__[0m [0;34m=[0m [0;34m[[0m[0;34m'iface'[0m[0;34m,[0m [0;34m'size'[0m[0;34m][0m[0;34m[0m
|
123 |
[0;34m[0m[0;34m[0m
|
|
|
|
|
|
|
|
|
124 |
[0;34m[0m[0;31m# %% app.ipynb 7[0m[0;34m[0m
|
125 |
[0;34m[0m[0;32mdef[0m [0msize[0m[0;34m([0m[0mrepo[0m[0;34m:[0m[0mstr[0m[0;34m)[0m[0;34m:[0m[0;34m[0m
|
126 |
[0;34m[0m [0;34m"Returns the size in GB of a HuggingFace Dataset."[0m[0;34m[0m
|
@@ -157,9 +161,10 @@ git add -A; git commit -m "Add application files"; git push
|
|
157 |
|
158 |
## 5. Voilà! Enjoy your Gradio App
|
159 |
|
160 |
-
After a couple of minutes, you will see your app published!
|
161 |
|
162 |
|
163 |
```
|
164 |
-
|
|
|
165 |
```
|
|
|
121 |
[0;34m[0m[0;31m# %% auto 0[0m[0;34m[0m
|
122 |
[0;34m[0m[0m__all__[0m [0;34m=[0m [0;34m[[0m[0;34m'iface'[0m[0;34m,[0m [0;34m'size'[0m[0;34m][0m[0;34m[0m
|
123 |
[0;34m[0m[0;34m[0m
|
124 |
+
[0;34m[0m[0;31m# %% app.ipynb 6[0m[0;34m[0m
|
125 |
+
[0;34m[0m[0;32mimport[0m [0mgradio[0m [0;32mas[0m [0mgr[0m[0;34m[0m
|
126 |
+
[0;34m[0m[0;32mfrom[0m [0mfastcore[0m[0;34m.[0m[0mnet[0m [0;32mimport[0m [0murljson[0m[0;34m,[0m [0mHTTPError[0m[0;34m[0m
|
127 |
+
[0;34m[0m[0;34m[0m
|
128 |
[0;34m[0m[0;31m# %% app.ipynb 7[0m[0;34m[0m
|
129 |
[0;34m[0m[0;32mdef[0m [0msize[0m[0;34m([0m[0mrepo[0m[0;34m:[0m[0mstr[0m[0;34m)[0m[0;34m:[0m[0;34m[0m
|
130 |
[0;34m[0m [0;34m"Returns the size in GB of a HuggingFace Dataset."[0m[0;34m[0m
|
|
|
161 |
|
162 |
## 5. Voilà! Enjoy your Gradio App
|
163 |
|
164 |
+
After a couple of minutes, you will see your app published! This app is published at https://huggingface.co/spaces/hamel/hfspace_demo.
|
165 |
|
166 |
|
167 |
```
|
168 |
+
#you can ignore this cell
|
169 |
+
_ = !./update.sh;
|
170 |
```
|