dingw commited on
Commit
dbe7f15
·
verified ·
1 Parent(s): d0622de

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. test.ipynb +4 -37
test.ipynb CHANGED
@@ -2,45 +2,12 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 13,
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
- "def numberGenerator(number_range: int):\n",
29
- "\tfor i in range(number_range+1):\n",
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
  {