Spaces:
Runtime error
Runtime error
Upload with huggingface_hub
Browse files- README.md +3 -3
- notebook.ipynb +68 -6
README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
---
|
2 |
title: gradio_notebook_test
|
3 |
app_file: _notebook.py
|
4 |
-
emoji:
|
5 |
-
colorFrom:
|
6 |
-
colorTo:
|
7 |
sdk: gradio
|
8 |
notebook_file: notebook.ipynb
|
9 |
---
|
|
|
1 |
---
|
2 |
title: gradio_notebook_test
|
3 |
app_file: _notebook.py
|
4 |
+
emoji: 🤖
|
5 |
+
colorFrom: green
|
6 |
+
colorTo: green
|
7 |
sdk: gradio
|
8 |
notebook_file: notebook.ipynb
|
9 |
---
|
notebook.ipynb
CHANGED
@@ -2,9 +2,26 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
"source": [
|
9 |
"%pip install pandas\n",
|
10 |
"\n",
|
@@ -13,9 +30,39 @@
|
|
13 |
},
|
14 |
{
|
15 |
"cell_type": "code",
|
16 |
-
"execution_count":
|
17 |
"metadata": {},
|
18 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
"source": [
|
20 |
"import gradio as gr\n",
|
21 |
"\n",
|
@@ -35,11 +82,26 @@
|
|
35 |
},
|
36 |
{
|
37 |
"cell_type": "code",
|
38 |
-
"execution_count":
|
39 |
"metadata": {
|
40 |
"scrolled": true
|
41 |
},
|
42 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
"source": [
|
44 |
"gr.upload_to_spaces()"
|
45 |
]
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 1,
|
6 |
"metadata": {},
|
7 |
+
"outputs": [
|
8 |
+
{
|
9 |
+
"name": "stdout",
|
10 |
+
"output_type": "stream",
|
11 |
+
"text": [
|
12 |
+
"Requirement already satisfied: pandas in /Users/aliabid/projects/projectenv/lib/python3.8/site-packages (1.3.5)\n",
|
13 |
+
"Requirement already satisfied: pytz>=2017.3 in /Users/aliabid/projects/projectenv/lib/python3.8/site-packages (from pandas) (2022.1)\n",
|
14 |
+
"Requirement already satisfied: python-dateutil>=2.7.3 in /Users/aliabid/projects/projectenv/lib/python3.8/site-packages (from pandas) (2.8.2)\n",
|
15 |
+
"Requirement already satisfied: numpy>=1.20.0 in /Users/aliabid/projects/projectenv/lib/python3.8/site-packages (from pandas) (1.21.6)\n",
|
16 |
+
"Requirement already satisfied: six>=1.5 in /Users/aliabid/projects/projectenv/lib/python3.8/site-packages (from python-dateutil>=2.7.3->pandas) (1.16.0)\n",
|
17 |
+
"\n",
|
18 |
+
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.0.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.1.2\u001b[0m\n",
|
19 |
+
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
|
20 |
+
"Note: you may need to restart the kernel to use updated packages.\n",
|
21 |
+
"test\n"
|
22 |
+
]
|
23 |
+
}
|
24 |
+
],
|
25 |
"source": [
|
26 |
"%pip install pandas\n",
|
27 |
"\n",
|
|
|
30 |
},
|
31 |
{
|
32 |
"cell_type": "code",
|
33 |
+
"execution_count": 2,
|
34 |
"metadata": {},
|
35 |
+
"outputs": [
|
36 |
+
{
|
37 |
+
"name": "stdout",
|
38 |
+
"output_type": "stream",
|
39 |
+
"text": [
|
40 |
+
"Running on local URL: http://127.0.0.1:7860\n",
|
41 |
+
"\n",
|
42 |
+
"To create a public link, set `share=True` in `launch()`.\n"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"data": {
|
47 |
+
"text/html": [
|
48 |
+
"<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
49 |
+
],
|
50 |
+
"text/plain": [
|
51 |
+
"<IPython.core.display.HTML object>"
|
52 |
+
]
|
53 |
+
},
|
54 |
+
"metadata": {},
|
55 |
+
"output_type": "display_data"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"data": {
|
59 |
+
"text/plain": []
|
60 |
+
},
|
61 |
+
"execution_count": 2,
|
62 |
+
"metadata": {},
|
63 |
+
"output_type": "execute_result"
|
64 |
+
}
|
65 |
+
],
|
66 |
"source": [
|
67 |
"import gradio as gr\n",
|
68 |
"\n",
|
|
|
82 |
},
|
83 |
{
|
84 |
"cell_type": "code",
|
85 |
+
"execution_count": 3,
|
86 |
"metadata": {
|
87 |
"scrolled": true
|
88 |
},
|
89 |
+
"outputs": [
|
90 |
+
{
|
91 |
+
"name": "stdout",
|
92 |
+
"output_type": "stream",
|
93 |
+
"text": [
|
94 |
+
"Creating new Spaces Repo in /Users/aliabid/projects/etc/gradio_notebook_test\n",
|
95 |
+
"Enter Spaces app name [gradio_notebook_test]: \n",
|
96 |
+
"Enter Gradio app file [notebook-checkpoint.ipynb]: notebook.ipynb\n",
|
97 |
+
"Enter Spaces Card emoji [🧠]: \n",
|
98 |
+
"Enter Spaces Card color [gray]: \n",
|
99 |
+
"Converting notebook.ipynb to _notebook.py.\n",
|
100 |
+
"Creating requirements.txt file. Please add any dependencies to this file.\n",
|
101 |
+
"Space available at https://huggingface.co/spaces/aliabid94/gradio_notebook_test/tree/main/\n"
|
102 |
+
]
|
103 |
+
}
|
104 |
+
],
|
105 |
"source": [
|
106 |
"gr.upload_to_spaces()"
|
107 |
]
|