Salman Naqvi commited on
Commit
f442bde
Β·
1 Parent(s): 2fb9876

Initial commit.

Browse files
Files changed (3) hide show
  1. .gitignore +323 -0
  2. README.md +3 -3
  3. app.py +14 -0
.gitignore ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Created by https://www.toptal.com/developers/gitignore/api/jetbrains,python,macos,jupyternotebooks
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains,python,macos,jupyternotebooks
3
+
4
+ ### JetBrains ###
5
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7
+
8
+ # User-specific stuff
9
+ .idea/**/workspace.xml
10
+ .idea/**/tasks.xml
11
+ .idea/**/usage.statistics.xml
12
+ .idea/**/dictionaries
13
+ .idea/**/shelf
14
+
15
+ # AWS User-specific
16
+ .idea/**/aws.xml
17
+
18
+ # Generated files
19
+ .idea/**/contentModel.xml
20
+
21
+ # Sensitive or high-churn files
22
+ .idea/**/dataSources/
23
+ .idea/**/dataSources.ids
24
+ .idea/**/dataSources.local.xml
25
+ .idea/**/sqlDataSources.xml
26
+ .idea/**/dynamic.xml
27
+ .idea/**/uiDesigner.xml
28
+ .idea/**/dbnavigator.xml
29
+
30
+ # Gradle
31
+ .idea/**/gradle.xml
32
+ .idea/**/libraries
33
+
34
+ # Gradle and Maven with auto-import
35
+ # When using Gradle or Maven with auto-import, you should exclude module files,
36
+ # since they will be recreated, and may cause churn. Uncomment if using
37
+ # auto-import.
38
+ # .idea/artifacts
39
+ # .idea/compiler.xml
40
+ # .idea/jarRepositories.xml
41
+ # .idea/modules.xml
42
+ # .idea/*.iml
43
+ # .idea/modules
44
+ # *.iml
45
+ # *.ipr
46
+
47
+ # CMake
48
+ cmake-build-*/
49
+
50
+ # Mongo Explorer plugin
51
+ .idea/**/mongoSettings.xml
52
+
53
+ # File-based project format
54
+ *.iws
55
+
56
+ # IntelliJ
57
+ out/
58
+
59
+ # mpeltonen/sbt-idea plugin
60
+ .idea_modules/
61
+
62
+ # JIRA plugin
63
+ atlassian-ide-plugin.xml
64
+
65
+ # Cursive Clojure plugin
66
+ .idea/replstate.xml
67
+
68
+ # SonarLint plugin
69
+ .idea/sonarlint/
70
+
71
+ # Crashlytics plugin (for Android Studio and IntelliJ)
72
+ com_crashlytics_export_strings.xml
73
+ crashlytics.properties
74
+ crashlytics-build.properties
75
+ fabric.properties
76
+
77
+ # Editor-based Rest Client
78
+ .idea/httpRequests
79
+
80
+ # Android studio 3.1+ serialized cache file
81
+ .idea/caches/build_file_checksums.ser
82
+
83
+ ### JetBrains Patch ###
84
+ # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
85
+
86
+ # *.iml
87
+ # modules.xml
88
+ # .idea/misc.xml
89
+ # *.ipr
90
+
91
+ # Sonarlint plugin
92
+ # https://plugins.jetbrains.com/plugin/7973-sonarlint
93
+ .idea/**/sonarlint/
94
+
95
+ # SonarQube Plugin
96
+ # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
97
+ .idea/**/sonarIssues.xml
98
+
99
+ # Markdown Navigator plugin
100
+ # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
101
+ .idea/**/markdown-navigator.xml
102
+ .idea/**/markdown-navigator-enh.xml
103
+ .idea/**/markdown-navigator/
104
+
105
+ # Cache file creation bug
106
+ # See https://youtrack.jetbrains.com/issue/JBR-2257
107
+ .idea/$CACHE_FILE$
108
+
109
+ # CodeStream plugin
110
+ # https://plugins.jetbrains.com/plugin/12206-codestream
111
+ .idea/codestream.xml
112
+
113
+ # Azure Toolkit for IntelliJ plugin
114
+ # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
115
+ .idea/**/azureSettings.xml
116
+
117
+ ### JupyterNotebooks ###
118
+ # gitignore template for Jupyter Notebooks
119
+ # website: http://jupyter.org/
120
+
121
+ .ipynb_checkpoints
122
+ */.ipynb_checkpoints/*
123
+
124
+ # IPython
125
+ profile_default/
126
+ ipython_config.py
127
+
128
+ # Remove previous ipynb_checkpoints
129
+ # git rm -r .ipynb_checkpoints/
130
+
131
+ ### macOS ###
132
+ # General
133
+ .DS_Store
134
+ .AppleDouble
135
+ .LSOverride
136
+
137
+ # Icon must end with two \r
138
+ Icon
139
+
140
+
141
+ # Thumbnails
142
+ ._*
143
+
144
+ # Files that might appear in the root of a volume
145
+ .DocumentRevisions-V100
146
+ .fseventsd
147
+ .Spotlight-V100
148
+ .TemporaryItems
149
+ .Trashes
150
+ .VolumeIcon.icns
151
+ .com.apple.timemachine.donotpresent
152
+
153
+ # Directories potentially created on remote AFP share
154
+ .AppleDB
155
+ .AppleDesktop
156
+ Network Trash Folder
157
+ Temporary Items
158
+ .apdisk
159
+
160
+ ### macOS Patch ###
161
+ # iCloud generated files
162
+ *.icloud
163
+
164
+ ### Python ###
165
+ # Byte-compiled / optimized / DLL files
166
+ __pycache__/
167
+ *.py[cod]
168
+ *$py.class
169
+
170
+ # C extensions
171
+ *.so
172
+
173
+ # Distribution / packaging
174
+ .Python
175
+ build/
176
+ develop-eggs/
177
+ dist/
178
+ downloads/
179
+ eggs/
180
+ .eggs/
181
+ lib/
182
+ lib64/
183
+ parts/
184
+ sdist/
185
+ var/
186
+ wheels/
187
+ share/python-wheels/
188
+ *.egg-info/
189
+ .installed.cfg
190
+ *.egg
191
+ MANIFEST
192
+
193
+ # PyInstaller
194
+ # Usually these files are written by a python script from a template
195
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
196
+ *.manifest
197
+ *.spec
198
+
199
+ # Installer logs
200
+ pip-log.txt
201
+ pip-delete-this-directory.txt
202
+
203
+ # Unit test / coverage reports
204
+ htmlcov/
205
+ .tox/
206
+ .nox/
207
+ .coverage
208
+ .coverage.*
209
+ .cache
210
+ nosetests.xml
211
+ coverage.xml
212
+ *.cover
213
+ *.py,cover
214
+ .hypothesis/
215
+ .pytest_cache/
216
+ cover/
217
+
218
+ # Translations
219
+ *.mo
220
+ *.pot
221
+
222
+ # Django stuff:
223
+ *.log
224
+ local_settings.py
225
+ db.sqlite3
226
+ db.sqlite3-journal
227
+
228
+ # Flask stuff:
229
+ instance/
230
+ .webassets-cache
231
+
232
+ # Scrapy stuff:
233
+ .scrapy
234
+
235
+ # Sphinx documentation
236
+ docs/_build/
237
+
238
+ # PyBuilder
239
+ .pybuilder/
240
+ target/
241
+
242
+ # Jupyter Notebook
243
+
244
+ # IPython
245
+
246
+ # pyenv
247
+ # For a library or package, you might want to ignore these files since the code is
248
+ # intended to run in multiple environments; otherwise, check them in:
249
+ # .python-version
250
+
251
+ # pipenv
252
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
253
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
254
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
255
+ # install all needed dependencies.
256
+ #Pipfile.lock
257
+
258
+ # poetry
259
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
260
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
261
+ # commonly ignored for libraries.
262
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
263
+ #poetry.lock
264
+
265
+ # pdm
266
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
267
+ #pdm.lock
268
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
269
+ # in version control.
270
+ # https://pdm.fming.dev/#use-with-ide
271
+ .pdm.toml
272
+
273
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
274
+ __pypackages__/
275
+
276
+ # Celery stuff
277
+ celerybeat-schedule
278
+ celerybeat.pid
279
+
280
+ # SageMath parsed files
281
+ *.sage.py
282
+
283
+ # Environments
284
+ .env
285
+ .venv
286
+ env/
287
+ venv/
288
+ ENV/
289
+ env.bak/
290
+ venv.bak/
291
+
292
+ # Spyder project settings
293
+ .spyderproject
294
+ .spyproject
295
+
296
+ # Rope project settings
297
+ .ropeproject
298
+
299
+ # mkdocs documentation
300
+ /site
301
+
302
+ # mypy
303
+ .mypy_cache/
304
+ .dmypy.json
305
+ dmypy.json
306
+
307
+ # Pyre type checker
308
+ .pyre/
309
+
310
+ # pytype static type analyzer
311
+ .pytype/
312
+
313
+ # Cython debug symbols
314
+ cython_debug/
315
+
316
+ # PyCharm
317
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
318
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
319
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
320
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
321
+ #.idea/
322
+
323
+ # End of https://www.toptal.com/developers/gitignore/api/jetbrains,python,macos,jupyternotebooks
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: FloodDetector
3
- emoji: πŸ‘€
4
- colorFrom: gray
5
- colorTo: purple
6
  sdk: gradio
7
  sdk_version: 3.3.1
8
  app_file: app.py
 
1
  ---
2
  title: FloodDetector
3
+ emoji: 🌊
4
+ colorFrom: blue
5
+ colorTo: gray
6
  sdk: gradio
7
  sdk_version: 3.3.1
8
  app_file: app.py
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def main():
5
+
6
+ def greet(name):
7
+ return "Hello " + name + "!!"
8
+
9
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ iface.launch()
11
+
12
+
13
+ if __name__ == '__main__':
14
+ main()