Spaces:
Sleeping
Sleeping
Download app.py from mingbaer/ChatbotLab87: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/mingbaer/ChatbotLab87/resolve/3d47cbb0456d28f416824e734b3dbc19febbebd2/app.py
- Command line
-
hf download hf://spaces/mingbaer/ChatbotLab87@3d47cbb0456d28f416824e734b3dbc19febbebd2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/mingbaer/ChatbotLab87/resolve/3d47cbb0456d28f416824e734b3dbc19febbebd2/app.py
342 Bytes
| import gradio as gr | |
| # first, add your import lines | |
| def echo(message, history): | |
| return message | |
| # Code the function that your chatbot will run! | |
| chatbot = gr.ChatInterface(echo) | |
| # Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run | |
| chatbot.launch() | |
| # launches our chatbot | |