Download app.py from jluo8218/Chatbot2: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/jluo8218/Chatbot2/resolve/main/app.py
- Command line
-
hf download hf://spaces/jluo8218/Chatbot2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/jluo8218/Chatbot2/resolve/main/app.py
317 Bytes
| import gradio as gr | |
| import random | |
| def random_response(message, history): | |
| response_options = ["Yes", "No", "Most likely", "Don't count on it", "It is certain", "Ask again later", "I'm not sure", "Definitely"] | |
| return random.choice(response_options) | |
| chatbot = gr.ChatInterface(random_response) | |
| chatbot.launch() |