Spaces:
Running
Running
Fix
Browse files
app.ipynb
CHANGED
|
@@ -43,7 +43,7 @@
|
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"cell_type": "code",
|
| 46 |
-
"execution_count":
|
| 47 |
"id": "7579bfc6-ddf6-444d-ab7e-505734d86e4d",
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [
|
|
@@ -59,7 +59,7 @@
|
|
| 59 |
"name": "stdout",
|
| 60 |
"output_type": "stream",
|
| 61 |
"text": [
|
| 62 |
-
"Running on local URL: http://127.0.0.1:
|
| 63 |
"\n",
|
| 64 |
"To create a public link, set `share=True` in `launch()`.\n"
|
| 65 |
]
|
|
@@ -67,7 +67,7 @@
|
|
| 67 |
{
|
| 68 |
"data": {
|
| 69 |
"text/html": [
|
| 70 |
-
"<div><iframe src=\"http://127.0.0.1:
|
| 71 |
],
|
| 72 |
"text/plain": [
|
| 73 |
"<IPython.core.display.HTML object>"
|
|
@@ -80,7 +80,7 @@
|
|
| 80 |
"data": {
|
| 81 |
"text/plain": []
|
| 82 |
},
|
| 83 |
-
"execution_count":
|
| 84 |
"metadata": {},
|
| 85 |
"output_type": "execute_result"
|
| 86 |
}
|
|
@@ -98,7 +98,7 @@
|
|
| 98 |
" with gr.Row():\n",
|
| 99 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 100 |
" data_run.click(\n",
|
| 101 |
-
" get_submissions, inputs=gr.Variable(\"
|
| 102 |
" )\n",
|
| 103 |
" with gr.TabItem(\"Science\"):\n",
|
| 104 |
" with gr.Row():\n",
|
|
@@ -106,7 +106,7 @@
|
|
| 106 |
" with gr.Row():\n",
|
| 107 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 108 |
" data_run.click(\n",
|
| 109 |
-
" get_submissions, inputs=gr.Variable(\"
|
| 110 |
" )\n",
|
| 111 |
" with gr.TabItem(\"Food\"):\n",
|
| 112 |
" with gr.Row():\n",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
" with gr.Row():\n",
|
| 115 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 116 |
" data_run.click(\n",
|
| 117 |
-
" get_submissions, inputs=gr.Variable(\"
|
| 118 |
" )\n",
|
| 119 |
" with gr.TabItem(\"Landscape\"):\n",
|
| 120 |
" with gr.Row():\n",
|
|
@@ -122,7 +122,7 @@
|
|
| 122 |
" with gr.Row():\n",
|
| 123 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 124 |
" data_run.click(\n",
|
| 125 |
-
" get_submissions, inputs=gr.Variable(\"
|
| 126 |
" )\n",
|
| 127 |
" with gr.TabItem(\"Wilcard\"):\n",
|
| 128 |
" with gr.Row():\n",
|
|
@@ -131,7 +131,7 @@
|
|
| 131 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 132 |
" data_run.click(\n",
|
| 133 |
" get_submissions,\n",
|
| 134 |
-
" inputs=gr.Variable(\"
|
| 135 |
" outputs=wildcard_data,\n",
|
| 136 |
" )\n",
|
| 137 |
"\n",
|
|
@@ -147,7 +147,7 @@
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
-
"execution_count":
|
| 151 |
"id": "17ff7d33-0c9a-4ca0-bb7b-ba1661063035",
|
| 152 |
"metadata": {},
|
| 153 |
"outputs": [
|
|
@@ -155,7 +155,7 @@
|
|
| 155 |
"name": "stdout",
|
| 156 |
"output_type": "stream",
|
| 157 |
"text": [
|
| 158 |
-
"Closing server running on port:
|
| 159 |
]
|
| 160 |
}
|
| 161 |
],
|
|
@@ -165,7 +165,7 @@
|
|
| 165 |
},
|
| 166 |
{
|
| 167 |
"cell_type": "code",
|
| 168 |
-
"execution_count":
|
| 169 |
"id": "339fee32-8a83-435d-b882-55b5f0994774",
|
| 170 |
"metadata": {},
|
| 171 |
"outputs": [],
|
|
|
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"cell_type": "code",
|
| 46 |
+
"execution_count": 82,
|
| 47 |
"id": "7579bfc6-ddf6-444d-ab7e-505734d86e4d",
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [
|
|
|
|
| 59 |
"name": "stdout",
|
| 60 |
"output_type": "stream",
|
| 61 |
"text": [
|
| 62 |
+
"Running on local URL: http://127.0.0.1:7878\n",
|
| 63 |
"\n",
|
| 64 |
"To create a public link, set `share=True` in `launch()`.\n"
|
| 65 |
]
|
|
|
|
| 67 |
{
|
| 68 |
"data": {
|
| 69 |
"text/html": [
|
| 70 |
+
"<div><iframe src=\"http://127.0.0.1:7878/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
| 71 |
],
|
| 72 |
"text/plain": [
|
| 73 |
"<IPython.core.display.HTML object>"
|
|
|
|
| 80 |
"data": {
|
| 81 |
"text/plain": []
|
| 82 |
},
|
| 83 |
+
"execution_count": 82,
|
| 84 |
"metadata": {},
|
| 85 |
"output_type": "execute_result"
|
| 86 |
}
|
|
|
|
| 98 |
" with gr.Row():\n",
|
| 99 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 100 |
" data_run.click(\n",
|
| 101 |
+
" get_submissions, inputs=gr.Variable(\"animal\"), outputs=animal_data\n",
|
| 102 |
" )\n",
|
| 103 |
" with gr.TabItem(\"Science\"):\n",
|
| 104 |
" with gr.Row():\n",
|
|
|
|
| 106 |
" with gr.Row():\n",
|
| 107 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 108 |
" data_run.click(\n",
|
| 109 |
+
" get_submissions, inputs=gr.Variable(\"science\"), outputs=science_data\n",
|
| 110 |
" )\n",
|
| 111 |
" with gr.TabItem(\"Food\"):\n",
|
| 112 |
" with gr.Row():\n",
|
|
|
|
| 114 |
" with gr.Row():\n",
|
| 115 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 116 |
" data_run.click(\n",
|
| 117 |
+
" get_submissions, inputs=gr.Variable(\"food\"), outputs=food_data\n",
|
| 118 |
" )\n",
|
| 119 |
" with gr.TabItem(\"Landscape\"):\n",
|
| 120 |
" with gr.Row():\n",
|
|
|
|
| 122 |
" with gr.Row():\n",
|
| 123 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 124 |
" data_run.click(\n",
|
| 125 |
+
" get_submissions, inputs=gr.Variable(\"landscape\"), outputs=landscape_data\n",
|
| 126 |
" )\n",
|
| 127 |
" with gr.TabItem(\"Wilcard\"):\n",
|
| 128 |
" with gr.Row():\n",
|
|
|
|
| 131 |
" data_run = gr.Button(\"Refresh\")\n",
|
| 132 |
" data_run.click(\n",
|
| 133 |
" get_submissions,\n",
|
| 134 |
+
" inputs=gr.Variable(\"wildcard\"),\n",
|
| 135 |
" outputs=wildcard_data,\n",
|
| 136 |
" )\n",
|
| 137 |
"\n",
|
|
|
|
| 147 |
},
|
| 148 |
{
|
| 149 |
"cell_type": "code",
|
| 150 |
+
"execution_count": 83,
|
| 151 |
"id": "17ff7d33-0c9a-4ca0-bb7b-ba1661063035",
|
| 152 |
"metadata": {},
|
| 153 |
"outputs": [
|
|
|
|
| 155 |
"name": "stdout",
|
| 156 |
"output_type": "stream",
|
| 157 |
"text": [
|
| 158 |
+
"Closing server running on port: 7878\n"
|
| 159 |
]
|
| 160 |
}
|
| 161 |
],
|
|
|
|
| 165 |
},
|
| 166 |
{
|
| 167 |
"cell_type": "code",
|
| 168 |
+
"execution_count": 79,
|
| 169 |
"id": "339fee32-8a83-435d-b882-55b5f0994774",
|
| 170 |
"metadata": {},
|
| 171 |
"outputs": [],
|
app.py
CHANGED
|
@@ -40,7 +40,7 @@ with block:
|
|
| 40 |
with gr.Row():
|
| 41 |
data_run = gr.Button("Refresh")
|
| 42 |
data_run.click(
|
| 43 |
-
get_submissions, inputs=gr.Variable("
|
| 44 |
)
|
| 45 |
with gr.TabItem("Science"):
|
| 46 |
with gr.Row():
|
|
@@ -48,7 +48,7 @@ with block:
|
|
| 48 |
with gr.Row():
|
| 49 |
data_run = gr.Button("Refresh")
|
| 50 |
data_run.click(
|
| 51 |
-
get_submissions, inputs=gr.Variable("
|
| 52 |
)
|
| 53 |
with gr.TabItem("Food"):
|
| 54 |
with gr.Row():
|
|
@@ -56,7 +56,7 @@ with block:
|
|
| 56 |
with gr.Row():
|
| 57 |
data_run = gr.Button("Refresh")
|
| 58 |
data_run.click(
|
| 59 |
-
get_submissions, inputs=gr.Variable("
|
| 60 |
)
|
| 61 |
with gr.TabItem("Landscape"):
|
| 62 |
with gr.Row():
|
|
@@ -64,7 +64,7 @@ with block:
|
|
| 64 |
with gr.Row():
|
| 65 |
data_run = gr.Button("Refresh")
|
| 66 |
data_run.click(
|
| 67 |
-
get_submissions, inputs=gr.Variable("
|
| 68 |
)
|
| 69 |
with gr.TabItem("Wilcard"):
|
| 70 |
with gr.Row():
|
|
@@ -73,7 +73,7 @@ with block:
|
|
| 73 |
data_run = gr.Button("Refresh")
|
| 74 |
data_run.click(
|
| 75 |
get_submissions,
|
| 76 |
-
inputs=gr.Variable("
|
| 77 |
outputs=wildcard_data,
|
| 78 |
)
|
| 79 |
|
|
|
|
| 40 |
with gr.Row():
|
| 41 |
data_run = gr.Button("Refresh")
|
| 42 |
data_run.click(
|
| 43 |
+
get_submissions, inputs=gr.Variable("animal"), outputs=animal_data
|
| 44 |
)
|
| 45 |
with gr.TabItem("Science"):
|
| 46 |
with gr.Row():
|
|
|
|
| 48 |
with gr.Row():
|
| 49 |
data_run = gr.Button("Refresh")
|
| 50 |
data_run.click(
|
| 51 |
+
get_submissions, inputs=gr.Variable("science"), outputs=science_data
|
| 52 |
)
|
| 53 |
with gr.TabItem("Food"):
|
| 54 |
with gr.Row():
|
|
|
|
| 56 |
with gr.Row():
|
| 57 |
data_run = gr.Button("Refresh")
|
| 58 |
data_run.click(
|
| 59 |
+
get_submissions, inputs=gr.Variable("food"), outputs=food_data
|
| 60 |
)
|
| 61 |
with gr.TabItem("Landscape"):
|
| 62 |
with gr.Row():
|
|
|
|
| 64 |
with gr.Row():
|
| 65 |
data_run = gr.Button("Refresh")
|
| 66 |
data_run.click(
|
| 67 |
+
get_submissions, inputs=gr.Variable("landscape"), outputs=landscape_data
|
| 68 |
)
|
| 69 |
with gr.TabItem("Wilcard"):
|
| 70 |
with gr.Row():
|
|
|
|
| 73 |
data_run = gr.Button("Refresh")
|
| 74 |
data_run.click(
|
| 75 |
get_submissions,
|
| 76 |
+
inputs=gr.Variable("wildcard"),
|
| 77 |
outputs=wildcard_data,
|
| 78 |
)
|
| 79 |
|