hamel commited on
Commit
bce82b9
1 Parent(s): a6c0b10

Add application files

Browse files
Files changed (3) hide show
  1. README.md +7 -2
  2. app.ipynb +9 -2
  3. app.md +7 -2
README.md CHANGED
@@ -133,6 +133,10 @@ Notice how the contents of app.py only contains the exported cells from this not
133
  # %% auto 0
134
  __all__ = ['iface', 'size']
135
  
 
 
 
 
136
  # %% app.ipynb 7
137
  def size(repo:str):
138
   "Returns the size in GB of a HuggingFace Dataset."
@@ -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
  # %% auto 0
134
  __all__ = ['iface', 'size']
135
  
136
+ # %% app.ipynb 6
137
+ import gradio as gr
138
+ from fastcore.net import urljson, HTTPError
139
+ 
140
  # %% app.ipynb 7
141
  def size(repo:str):
142
   "Returns the size in GB of a HuggingFace Dataset."
 
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
  # %% auto 0
122
  __all__ = ['iface', 'size']
123
  
 
 
 
 
124
  # %% app.ipynb 7
125
  def size(repo:str):
126
   "Returns the size in GB of a HuggingFace Dataset."
@@ -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
  # %% auto 0
122
  __all__ = ['iface', 'size']
123
  
124
+ # %% app.ipynb 6
125
+ import gradio as gr
126
+ from fastcore.net import urljson, HTTPError
127
+ 
128
  # %% app.ipynb 7
129
  def size(repo:str):
130
   "Returns the size in GB of a HuggingFace Dataset."
 
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
  ```