rewebution commited on
Commit
fb7b0b1
1 Parent(s): bae016e

Creating app.py

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. README.md +1 -0
  3. app.py +15 -0
  4. requirements.txt +60 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ env/
README.md CHANGED
@@ -8,6 +8,7 @@ sdk_version: 3.19.1
8
  app_file: app.py
9
  pinned: false
10
  license: openrail
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  app_file: app.py
9
  pinned: false
10
  license: openrail
11
+ python_version: 3.10.6
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+
3
+
4
+ def my_inference_function(name):
5
+ return "Hello " + name
6
+
7
+
8
+ gradio_interface = gradio.Interface(
9
+ fn=my_inference_function,
10
+ inputs="text",
11
+ outputs="text",
12
+ )
13
+
14
+
15
+ gradio.Interface.launch()
requirements.txt ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.1.0
2
+ aiohttp==3.8.4
3
+ aiosignal==1.3.1
4
+ altair==4.2.2
5
+ anyio==3.6.2
6
+ async-timeout==4.0.2
7
+ attrs==22.2.0
8
+ certifi==2022.12.7
9
+ charset-normalizer==3.0.1
10
+ click==8.1.3
11
+ colorama==0.4.6
12
+ contourpy==1.0.7
13
+ cycler==0.11.0
14
+ entrypoints==0.4
15
+ fastapi==0.92.0
16
+ ffmpy==0.3.0
17
+ fonttools==4.38.0
18
+ frozenlist==1.3.3
19
+ fsspec==2023.1.0
20
+ gradio==3.19.1
21
+ h11==0.14.0
22
+ httpcore==0.16.3
23
+ httpx==0.23.3
24
+ idna==3.4
25
+ Jinja2==3.1.2
26
+ jsonschema==4.17.3
27
+ kiwisolver==1.4.4
28
+ linkify-it-py==2.0.0
29
+ markdown-it-py==2.2.0
30
+ MarkupSafe==2.1.2
31
+ matplotlib==3.7.0
32
+ mdit-py-plugins==0.3.3
33
+ mdurl==0.1.2
34
+ multidict==6.0.4
35
+ numpy==1.24.2
36
+ orjson==3.8.6
37
+ packaging==23.0
38
+ pandas==1.5.3
39
+ Pillow==9.4.0
40
+ pycryptodome==3.17
41
+ pydantic==1.10.5
42
+ pydub==0.25.1
43
+ pyparsing==3.0.9
44
+ pyrsistent==0.19.3
45
+ python-dateutil==2.8.2
46
+ python-multipart==0.0.5
47
+ pytz==2022.7.1
48
+ PyYAML==6.0
49
+ requests==2.28.2
50
+ rfc3986==1.5.0
51
+ six==1.16.0
52
+ sniffio==1.3.0
53
+ starlette==0.25.0
54
+ toolz==0.12.0
55
+ typing_extensions==4.5.0
56
+ uc-micro-py==1.0.1
57
+ urllib3==1.26.14
58
+ uvicorn==0.20.0
59
+ websockets==10.4
60
+ yarl==1.8.2