Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- test.ipynb +4 -37
test.ipynb
CHANGED
@@ -2,45 +2,12 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
-
"outputs": [
|
8 |
-
{
|
9 |
-
"name": "stdout",
|
10 |
-
"output_type": "stream",
|
11 |
-
"text": [
|
12 |
-
"I am going to yield something!\n",
|
13 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n",
|
14 |
-
"I am going to yield something!\n",
|
15 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n",
|
16 |
-
"I am going to yield something!\n",
|
17 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n",
|
18 |
-
"I am going to yield something!\n",
|
19 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n",
|
20 |
-
"I am going to yield something!\n",
|
21 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n",
|
22 |
-
"I am going to yield something!\n",
|
23 |
-
"<generator object numberGenerator at 0x7e9ba9d18d60>\n"
|
24 |
-
]
|
25 |
-
}
|
26 |
-
],
|
27 |
"source": [
|
28 |
-
"
|
29 |
-
"\
|
30 |
-
"\t\tyield i\n",
|
31 |
-
"\n",
|
32 |
-
"\n",
|
33 |
-
"def loudNumberGenerator(number_range: int):\n",
|
34 |
-
"\tnormal_number_generator = numberGenerator(number_range=number_range)\n",
|
35 |
-
"\twhile True:\n",
|
36 |
-
"\t\tprint('I am going to yield something!')\n",
|
37 |
-
"\t\tyield normal_number_generator\n",
|
38 |
-
"\n",
|
39 |
-
"\n",
|
40 |
-
"zero_to_five = loudNumberGenerator(5)\n",
|
41 |
-
"\n",
|
42 |
-
"for _ in range(6):\n",
|
43 |
-
"\tprint(next(zero_to_five))"
|
44 |
]
|
45 |
},
|
46 |
{
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
"metadata": {},
|
7 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
"source": [
|
9 |
+
"import gradio_client as grc\n",
|
10 |
+
"grc.Client(\"dingw/echo-chatbot\").deploy_discord()"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
]
|
12 |
},
|
13 |
{
|