Download app.py from cbo42/test: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/cbo42/test/resolve/main/app.py
- Command line
-
hf download hf://spaces/cbo42/test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/cbo42/test/resolve/main/app.py
333 Bytes
| import gradio as gr | |
| import spaces | |
| def respond(message, history): | |
| return "Toujours le même refrain" | |
| chatbot = gr.ChatInterface( | |
| fn=respond, | |
| save_history=True, | |
| examples=["What can u do for me ?", "Who is the prettiest ?"], | |
| title="My awesome app", | |
| ) | |
| if __name__ == "__main__": | |
| chatbot.launch() | |