Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- modified_presentation.pptx +2 -2
- ppt_automation.ipynb +12 -38
modified_presentation.pptx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a614402424de67eb1a5ca4ad2c1a59848f65ba639a7c9570b558612e33c8e9fc
|
| 3 |
+
size 1793672
|
ppt_automation.ipynb
CHANGED
|
@@ -138,16 +138,24 @@
|
|
| 138 |
},
|
| 139 |
{
|
| 140 |
"cell_type": "code",
|
| 141 |
-
"execution_count":
|
| 142 |
"id": "ace7c061",
|
| 143 |
"metadata": {},
|
| 144 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
{
|
| 146 |
"name": "stdout",
|
| 147 |
"output_type": "stream",
|
| 148 |
"text": [
|
| 149 |
-
"Running on local URL: http://127.0.0.1:
|
| 150 |
-
"Running on public URL: https://
|
| 151 |
"\n",
|
| 152 |
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"
|
| 153 |
]
|
|
@@ -155,7 +163,7 @@
|
|
| 155 |
{
|
| 156 |
"data": {
|
| 157 |
"text/html": [
|
| 158 |
-
"<div><iframe src=\"https://
|
| 159 |
],
|
| 160 |
"text/plain": [
|
| 161 |
"<IPython.core.display.HTML object>"
|
|
@@ -163,32 +171,6 @@
|
|
| 163 |
},
|
| 164 |
"metadata": {},
|
| 165 |
"output_type": "display_data"
|
| 166 |
-
},
|
| 167 |
-
{
|
| 168 |
-
"name": "stderr",
|
| 169 |
-
"output_type": "stream",
|
| 170 |
-
"text": [
|
| 171 |
-
"Traceback (most recent call last):\n",
|
| 172 |
-
" File \"/opt/homebrew/lib/python3.11/site-packages/gradio/routes.py\", line 516, in predict\n",
|
| 173 |
-
" output = await route_utils.call_process_api(\n",
|
| 174 |
-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
| 175 |
-
" File \"/opt/homebrew/lib/python3.11/site-packages/gradio/route_utils.py\", line 219, in call_process_api\n",
|
| 176 |
-
" output = await app.get_blocks().process_api(\n",
|
| 177 |
-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
| 178 |
-
" File \"/opt/homebrew/lib/python3.11/site-packages/gradio/blocks.py\", line 1440, in process_api\n",
|
| 179 |
-
" data = self.postprocess_data(fn_index, result[\"prediction\"], state)\n",
|
| 180 |
-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
| 181 |
-
" File \"/opt/homebrew/lib/python3.11/site-packages/gradio/blocks.py\", line 1303, in postprocess_data\n",
|
| 182 |
-
" self.validate_outputs(fn_index, predictions) # type: ignore\n",
|
| 183 |
-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
| 184 |
-
" File \"/opt/homebrew/lib/python3.11/site-packages/gradio/blocks.py\", line 1278, in validate_outputs\n",
|
| 185 |
-
" raise ValueError(\n",
|
| 186 |
-
"ValueError: An event handler (search_keyword) didn't receive enough output values (needed: 4, received: 2).\n",
|
| 187 |
-
"Wanted outputs:\n",
|
| 188 |
-
" [textbox, state, textbox, button]\n",
|
| 189 |
-
"Received outputs:\n",
|
| 190 |
-
" [\"Keyword as not found in the presentation.\", False]\n"
|
| 191 |
-
]
|
| 192 |
}
|
| 193 |
],
|
| 194 |
"source": [
|
|
@@ -291,14 +273,6 @@
|
|
| 291 |
"if __name__ == \"__main__\":\n",
|
| 292 |
" demo.launch(share=True) \n"
|
| 293 |
]
|
| 294 |
-
},
|
| 295 |
-
{
|
| 296 |
-
"cell_type": "code",
|
| 297 |
-
"execution_count": null,
|
| 298 |
-
"id": "1baede91",
|
| 299 |
-
"metadata": {},
|
| 300 |
-
"outputs": [],
|
| 301 |
-
"source": []
|
| 302 |
}
|
| 303 |
],
|
| 304 |
"metadata": {
|
|
|
|
| 138 |
},
|
| 139 |
{
|
| 140 |
"cell_type": "code",
|
| 141 |
+
"execution_count": 7,
|
| 142 |
"id": "ace7c061",
|
| 143 |
"metadata": {},
|
| 144 |
"outputs": [
|
| 145 |
+
{
|
| 146 |
+
"name": "stderr",
|
| 147 |
+
"output_type": "stream",
|
| 148 |
+
"text": [
|
| 149 |
+
"/opt/homebrew/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 150 |
+
" from .autonotebook import tqdm as notebook_tqdm\n"
|
| 151 |
+
]
|
| 152 |
+
},
|
| 153 |
{
|
| 154 |
"name": "stdout",
|
| 155 |
"output_type": "stream",
|
| 156 |
"text": [
|
| 157 |
+
"Running on local URL: http://127.0.0.1:7860\n",
|
| 158 |
+
"Running on public URL: https://013add816637dee9ec.gradio.live\n",
|
| 159 |
"\n",
|
| 160 |
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"
|
| 161 |
]
|
|
|
|
| 163 |
{
|
| 164 |
"data": {
|
| 165 |
"text/html": [
|
| 166 |
+
"<div><iframe src=\"https://013add816637dee9ec.gradio.live\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
| 167 |
],
|
| 168 |
"text/plain": [
|
| 169 |
"<IPython.core.display.HTML object>"
|
|
|
|
| 171 |
},
|
| 172 |
"metadata": {},
|
| 173 |
"output_type": "display_data"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
}
|
| 175 |
],
|
| 176 |
"source": [
|
|
|
|
| 273 |
"if __name__ == \"__main__\":\n",
|
| 274 |
" demo.launch(share=True) \n"
|
| 275 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
}
|
| 277 |
],
|
| 278 |
"metadata": {
|