Spaces:
Sleeping
Sleeping
Download app.py from akhil20187/chatbasic: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/spaces/akhil20187/chatbasic/resolve/main/app.py
- Command line
-
hf download hf://spaces/akhil20187/chatbasic/app.py
-
curl -L -o app.py https://huggingface.co/spaces/akhil20187/chatbasic/resolve/main/app.py
230 Bytes
| import gradio as gr | |
| import random | |
| def random_response(message, history): | |
| response = random.choice(["Yes", "No", "Maybe", "I don't know","Who are you"]) | |
| return response | |
| demo = gr.ChatInterface(random_response).launch() | |