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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### VisualStudioCode template
|
2 |
+
.vscode/
|
3 |
+
|
4 |
+
### JetBrains template
|
5 |
+
.idea/
|
6 |
+
|
7 |
+
### Linux template
|
8 |
+
*~
|
9 |
+
|
10 |
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
11 |
+
.fuse_hidden*
|
12 |
+
|
13 |
+
# KDE directory preferences
|
14 |
+
.directory
|
15 |
+
|
16 |
+
# Linux trash folder which might appear on any partition or disk
|
17 |
+
.Trash-*
|
18 |
+
|
19 |
+
# .nfs files are created when an open file is removed but is still being accessed
|
20 |
+
.nfs*
|
21 |
+
|
22 |
+
### Windows template
|
23 |
+
# Windows thumbnail cache files
|
24 |
+
Thumbs.db
|
25 |
+
Thumbs.db:encryptable
|
26 |
+
ehthumbs.db
|
27 |
+
ehthumbs_vista.db
|
28 |
+
|
29 |
+
# Dump file
|
30 |
+
*.stackdump
|
31 |
+
|
32 |
+
# Folder config file
|
33 |
+
[Dd]esktop.ini
|
34 |
+
|
35 |
+
# Recycle Bin used on file shares
|
36 |
+
$RECYCLE.BIN/
|
37 |
+
|
38 |
+
# Windows Installer files
|
39 |
+
*.cab
|
40 |
+
*.msi
|
41 |
+
*.msix
|
42 |
+
*.msm
|
43 |
+
*.msp
|
44 |
+
|
45 |
+
# Windows shortcuts
|
46 |
+
*.lnk
|
47 |
+
|
48 |
+
### Archives template
|
49 |
+
# It's better to unpack these files and commit the raw source because
|
50 |
+
# git has its own built in compression methods.
|
51 |
+
*.7z
|
52 |
+
*.jar
|
53 |
+
*.rar
|
54 |
+
*.zip
|
55 |
+
*.gz
|
56 |
+
*.gzip
|
57 |
+
*.tgz
|
58 |
+
*.bzip
|
59 |
+
*.bzip2
|
60 |
+
*.bz2
|
61 |
+
*.xz
|
62 |
+
*.lzma
|
63 |
+
*.xar
|
64 |
+
|
65 |
+
# Packing-only formats
|
66 |
+
*.iso
|
67 |
+
*.tar
|
68 |
+
|
69 |
+
# Package management formats
|
70 |
+
*.dmg
|
71 |
+
*.xpi
|
72 |
+
*.gem
|
73 |
+
*.egg
|
74 |
+
*.deb
|
75 |
+
*.rpm
|
76 |
+
*.txz
|
77 |
+
|
78 |
+
### JupyterNotebooks template
|
79 |
+
# gitignore template for Jupyter Notebooks
|
80 |
+
# website: http://jupyter.org/
|
81 |
+
|
82 |
+
.ipynb_checkpoints
|
83 |
+
*/.ipynb_checkpoints/*
|
84 |
+
|
85 |
+
# IPython
|
86 |
+
profile_default/
|
87 |
+
ipython_config.py
|
88 |
+
|
89 |
+
# Remove previous ipynb_checkpoints
|
90 |
+
# git rm -r .ipynb_checkpoints/
|
91 |
+
|
92 |
+
### macOS template
|
93 |
+
# General
|
94 |
+
.DS_Store
|
95 |
+
.AppleDouble
|
96 |
+
.LSOverride
|
97 |
+
|
98 |
+
# Icon must end with two \r
|
99 |
+
Icon
|
100 |
+
|
101 |
+
# Thumbnails
|
102 |
+
._*
|
103 |
+
|
104 |
+
# Files that might appear in the root of a volume
|
105 |
+
.DocumentRevisions-V100
|
106 |
+
.fseventsd
|
107 |
+
.Spotlight-V100
|
108 |
+
.TemporaryItems
|
109 |
+
.Trashes
|
110 |
+
.VolumeIcon.icns
|
111 |
+
.com.apple.timemachine.donotpresent
|
112 |
+
|
113 |
+
# Directories potentially created on remote AFP share
|
114 |
+
.AppleDB
|
115 |
+
.AppleDesktop
|
116 |
+
Network Trash Folder
|
117 |
+
Temporary Items
|
118 |
+
.apdisk
|
119 |
+
|
120 |
+
### Python template
|
121 |
+
# Byte-compiled / optimized / DLL files
|
122 |
+
__pycache__/
|
123 |
+
*.py[cod]
|
124 |
+
*$py.class
|
125 |
+
|
126 |
+
# C extensions
|
127 |
+
*.so
|
128 |
+
|
129 |
+
# Distribution / packaging
|
130 |
+
.Python
|
131 |
+
build/
|
132 |
+
develop-eggs/
|
133 |
+
dist/
|
134 |
+
downloads/
|
135 |
+
eggs/
|
136 |
+
.eggs/
|
137 |
+
lib/
|
138 |
+
lib64/
|
139 |
+
parts/
|
140 |
+
sdist/
|
141 |
+
var/
|
142 |
+
wheels/
|
143 |
+
share/python-wheels/
|
144 |
+
*.egg-info/
|
145 |
+
.installed.cfg
|
146 |
+
MANIFEST
|
147 |
+
|
148 |
+
# PyInstaller
|
149 |
+
# Usually these files are written by a python script from a template
|
150 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
151 |
+
*.manifest
|
152 |
+
*.spec
|
153 |
+
|
154 |
+
# Installer logs
|
155 |
+
pip-log.txt
|
156 |
+
pip-delete-this-directory.txt
|
157 |
+
|
158 |
+
# Unit test / coverage reports
|
159 |
+
htmlcov/
|
160 |
+
.tox/
|
161 |
+
.nox/
|
162 |
+
.coverage
|
163 |
+
.coverage.*
|
164 |
+
.cache
|
165 |
+
nosetests.xml
|
166 |
+
coverage.xml
|
167 |
+
*.cover
|
168 |
+
*.py,cover
|
169 |
+
.hypothesis/
|
170 |
+
.pytest_cache/
|
171 |
+
cover/
|
172 |
+
|
173 |
+
# Translations
|
174 |
+
*.mo
|
175 |
+
*.pot
|
176 |
+
|
177 |
+
# Django stuff:
|
178 |
+
*.log
|
179 |
+
local_settings.py
|
180 |
+
db.sqlite3
|
181 |
+
db.sqlite3-journal
|
182 |
+
|
183 |
+
# Flask stuff:
|
184 |
+
instance/
|
185 |
+
.webassets-cache
|
186 |
+
|
187 |
+
# Scrapy stuff:
|
188 |
+
.scrapy
|
189 |
+
|
190 |
+
# Sphinx documentation
|
191 |
+
docs/_build/
|
192 |
+
|
193 |
+
# PyBuilder
|
194 |
+
.pybuilder/
|
195 |
+
target/
|
196 |
+
|
197 |
+
# Jupyter Notebook
|
198 |
+
|
199 |
+
# IPython
|
200 |
+
|
201 |
+
# pyenv
|
202 |
+
# For a library or package, you might want to ignore these files since the code is
|
203 |
+
# intended to run in multiple environments; otherwise, check them in:
|
204 |
+
.python-version
|
205 |
+
|
206 |
+
# pipenv
|
207 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
208 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
209 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
210 |
+
# install all needed dependencies.
|
211 |
+
#Pipfile.lock
|
212 |
+
|
213 |
+
# poetry
|
214 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
215 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
216 |
+
# commonly ignored for libraries.
|
217 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
218 |
+
#poetry.lock
|
219 |
+
|
220 |
+
# pdm
|
221 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
222 |
+
#pdm.lock
|
223 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
224 |
+
# in version control.
|
225 |
+
# https://pdm.fming.dev/#use-with-ide
|
226 |
+
.pdm.toml
|
227 |
+
|
228 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
229 |
+
__pypackages__/
|
230 |
+
|
231 |
+
# Celery stuff
|
232 |
+
celerybeat-schedule
|
233 |
+
celerybeat.pid
|
234 |
+
|
235 |
+
# SageMath parsed files
|
236 |
+
*.sage.py
|
237 |
+
|
238 |
+
# Environments
|
239 |
+
.env
|
240 |
+
.venv
|
241 |
+
env/
|
242 |
+
venv/
|
243 |
+
ENV/
|
244 |
+
env.bak/
|
245 |
+
venv.bak/
|
246 |
+
|
247 |
+
# Spyder project settings
|
248 |
+
.spyderproject
|
249 |
+
.spyproject
|
250 |
+
|
251 |
+
# Rope project settings
|
252 |
+
.ropeproject
|
253 |
+
|
254 |
+
# mkdocs documentation
|
255 |
+
/site
|
256 |
+
|
257 |
+
# mypy
|
258 |
+
.mypy_cache/
|
259 |
+
.dmypy.json
|
260 |
+
dmypy.json
|
261 |
+
|
262 |
+
# Pyre type checker
|
263 |
+
.pyre/
|
264 |
+
|
265 |
+
# pytype static type analyzer
|
266 |
+
.pytype/
|
267 |
+
|
268 |
+
# Cython debug symbols
|
269 |
+
cython_debug/
|
270 |
+
|
271 |
+
### SublimeText template
|
272 |
+
# Cache files for Sublime Text
|
273 |
+
*.tmlanguage.cache
|
274 |
+
*.tmPreferences.cache
|
275 |
+
*.stTheme.cache
|
276 |
+
|
277 |
+
# Workspace files are user-specific
|
278 |
+
*.sublime-workspace
|
279 |
+
|
280 |
+
# Project files should be checked into the repository, unless a significant
|
281 |
+
# proportion of contributors will probably not be using Sublime Text
|
282 |
+
# *.sublime-project
|
283 |
+
|
284 |
+
# SFTP configuration file
|
285 |
+
sftp-config.json
|
286 |
+
sftp-config-alt*.json
|
287 |
+
|
288 |
+
# Package control specific files
|
289 |
+
Package Control.last-run
|
290 |
+
Package Control.ca-list
|
291 |
+
Package Control.ca-bundle
|
292 |
+
Package Control.system-ca-bundle
|
293 |
+
Package Control.cache/
|
294 |
+
Package Control.ca-certs/
|
295 |
+
Package Control.merged-ca-bundle
|
296 |
+
Package Control.user-ca-bundle
|
297 |
+
oscrypto-ca-bundle.crt
|
298 |
+
bh_unicode_properties.cache
|
299 |
+
|
300 |
+
# Sublime-github package stores a github token in this file
|
301 |
+
# https://packagecontrol.io/packages/sublime-github
|
302 |
+
GitHub.sublime-settings
|
303 |
+
|
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|