Download app.py from multimodalart/application-time-stuck: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/multimodalart/application-time-stuck/resolve/main/app.py
- Command line
-
hf download hf://spaces/multimodalart/application-time-stuck/app.py
-
curl -L -o app.py https://huggingface.co/spaces/multimodalart/application-time-stuck/resolve/main/app.py
349 Bytes
| import gradio as gr | |
| from time import sleep | |
| print("Hi I am a print log") | |
| sleep(5) | |
| print("Sorry I slept for 5 seconds, what did I miss? Oh, the logs!") | |
| sleep(10) | |
| print("Sorry, got distracted again, ok now let's go!") | |
| def greet(name): | |
| return "Hello " + name + "!" | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch() |