Spaces:
Runtime error
Runtime error
Download app.py from c4r-sty/PythonCode: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/spaces/c4r-sty/PythonCode/resolve/44d3cb2ad30bbbee45127be8b1348520cf52524b/app.py
- Command line
-
hf download hf://spaces/c4r-sty/PythonCode@44d3cb2ad30bbbee45127be8b1348520cf52524b/app.py
-
curl -L -o app.py https://huggingface.co/spaces/c4r-sty/PythonCode/resolve/44d3cb2ad30bbbee45127be8b1348520cf52524b/app.py
193 Bytes
| import gradio as gr | |
| import random | |
| def chance(message, history): | |
| response_options["yes","no"] | |
| return random.choice(response_options) | |
| chatbot = gr.ChatInterface(chance) | |
| chatbot.launch() |