Spaces:
Running
Running
Download app.py from bdragert27/AIML_Chatbot_Lab: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/bdragert27/AIML_Chatbot_Lab/resolve/main/app.py
- Command line
-
hf download hf://spaces/bdragert27/AIML_Chatbot_Lab/app.py
-
curl -L -o app.py https://huggingface.co/spaces/bdragert27/AIML_Chatbot_Lab/resolve/main/app.py
502 Bytes
| import gradio as gr | |
| import random | |
| #import lines go at the top! Any libraries I need to import go up here ^^ | |
| def yes_or_no(message, history): | |
| return random.choice(['Yes', 'No', 'Outlook not so good', 'It is likely']) | |
| #def echo(message, history): | |
| # return message | |
| print("Hello world!") | |
| chatbot = gr.ChatInterface(yes_or_no, type= "messages", title= "Virtual 8 Ball") | |
| #defining my chatbot so that the user can interact, see their conversation history, and send new messages | |
| chatbot.launch() |