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