Spaces:
Runtime error
Runtime error
Download app.py from c4r-sty/PythonCode: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/spaces/c4r-sty/PythonCode/resolve/6eed5fe21d33445e7c4ddec3a7b4d2365a21df33/app.py
- Command line
-
hf download hf://spaces/c4r-sty/PythonCode@6eed5fe21d33445e7c4ddec3a7b4d2365a21df33/app.py
-
curl -L -o app.py https://huggingface.co/spaces/c4r-sty/PythonCode/resolve/6eed5fe21d33445e7c4ddec3a7b4d2365a21df33/app.py
279 Bytes
| import gradio as gr | |
| import random | |
| def chance(message, history): | |
| response_options = ["yes", "no", "maybe", "potentially", "your future is blurred"] | |
| return random.choice(response_options) | |
| chatbot = gr.ChatInterface(chance, title = "Magic 8-Ball Chatbot") | |
| chatbot.launch() |