Spaces:
Sleeping
Sleeping
Download app.py from TeahReichenbaum/FirstChatBot: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/spaces/TeahReichenbaum/FirstChatBot/resolve/0a698fb42458d416bb2ff680a296d3121b32d606/app.py
- Command line
-
hf download hf://spaces/TeahReichenbaum/FirstChatBot@0a698fb42458d416bb2ff680a296d3121b32d606/app.py
-
curl -L -o app.py https://huggingface.co/spaces/TeahReichenbaum/FirstChatBot/resolve/0a698fb42458d416bb2ff680a296d3121b32d606/app.py
206 Bytes
| import gradio as gr | |
| import random | |
| def yesNoRandom(message,history): | |
| repsonse=["yes","no"] | |
| return random.choice(repsonse) | |
| chatbot = gr.ChatInterface(yesNoRandom, type = "message") | |
| chatbot.launch() |