Spaces:
Sleeping
Sleeping
abhlash
commited on
Commit
·
537e134
1
Parent(s):
1542c01
updated the .gitignore file and added app.py file
Browse files- .gitignore +3 -84
- app.py +12 -0
.gitignore
CHANGED
|
@@ -1,85 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
-
.eggs/
|
| 3 |
-
gradio.egg-info/
|
| 4 |
-
dist/
|
| 5 |
-
dist-lite/
|
| 6 |
-
*.pyc
|
| 7 |
__pycache__/
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
build/
|
| 11 |
-
__tmp/
|
| 12 |
-
*.pyi
|
| 13 |
-
py.typed
|
| 14 |
-
.ipynb_checkpoints/
|
| 15 |
-
|
| 16 |
-
# JS build
|
| 17 |
-
gradio/templates/*
|
| 18 |
-
gradio/node/*
|
| 19 |
-
gradio/_frontend_code/*
|
| 20 |
-
js/gradio-preview/test/
|
| 21 |
-
|
| 22 |
-
# Secrets
|
| 23 |
-
.env
|
| 24 |
-
|
| 25 |
-
# Gradio run artifacts
|
| 26 |
-
*.db
|
| 27 |
-
*.sqlite3
|
| 28 |
-
gradio/launches.json
|
| 29 |
-
flagged/
|
| 30 |
-
gradio_cached_examples/
|
| 31 |
-
tmp.zip
|
| 32 |
-
|
| 33 |
-
# Tests
|
| 34 |
-
.coverage
|
| 35 |
-
coverage.xml
|
| 36 |
-
test.txt
|
| 37 |
-
**/snapshots/**/*.png
|
| 38 |
-
playwright-report/
|
| 39 |
-
|
| 40 |
-
# Demos
|
| 41 |
-
demo/tmp.zip
|
| 42 |
-
demo/files/*.avi
|
| 43 |
-
demo/files/*.mp4
|
| 44 |
-
demo/all_demos/demos/*
|
| 45 |
-
demo/all_demos/requirements.txt
|
| 46 |
-
demo/*/config.json
|
| 47 |
-
demo/annotatedimage_component/*.png
|
| 48 |
-
demo/fake_diffusion_with_gif/*.gif
|
| 49 |
-
demo/cancel_events/cancel_events_output_log.txt
|
| 50 |
-
demo/unload_event_test/output_log.txt
|
| 51 |
-
|
| 52 |
-
# Etc
|
| 53 |
-
.idea/
|
| 54 |
-
.DS_Store
|
| 55 |
-
*.bak
|
| 56 |
-
workspace.code-workspace
|
| 57 |
-
*.h5
|
| 58 |
-
|
| 59 |
-
# dev containers
|
| 60 |
-
.pnpm-store/
|
| 61 |
-
|
| 62 |
-
# log files
|
| 63 |
-
.pnpm-debug.log
|
| 64 |
-
|
| 65 |
-
# Local virtualenv for devs
|
| 66 |
-
.venv*
|
| 67 |
-
|
| 68 |
-
# FRP
|
| 69 |
-
gradio/frpc_*
|
| 70 |
-
|
| 71 |
-
# js
|
| 72 |
-
node_modules
|
| 73 |
-
public/build/
|
| 74 |
-
test-results
|
| 75 |
-
client/js/dist/*
|
| 76 |
-
client/js/test.js
|
| 77 |
-
.config/test.py
|
| 78 |
-
|
| 79 |
-
# storybook
|
| 80 |
-
storybook-static
|
| 81 |
-
build-storybook.log
|
| 82 |
-
js/storybook/theme.css
|
| 83 |
-
|
| 84 |
-
# playwright
|
| 85 |
-
.config/playwright/.cache
|
|
|
|
| 1 |
+
# .gitignore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
__pycache__/
|
| 3 |
+
.gradio/
|
| 4 |
+
.env
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name, intensity):
|
| 4 |
+
return "Hello, " + name + "!" * int(intensity)
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
+
fn=greet,
|
| 8 |
+
inputs=["text", "slider"],
|
| 9 |
+
outputs=["text"],
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
demo.launch()
|