Spaces:
Runtime error
Runtime error
Download app.py from will3d/chat-bot-loader: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/spaces/will3d/chat-bot-loader/resolve/main/app.py
- Command line
-
hf download hf://spaces/will3d/chat-bot-loader/app.py
-
curl -L -o app.py https://huggingface.co/spaces/will3d/chat-bot-loader/resolve/main/app.py
676 Bytes
| #import gradio as gr | |
| ''' | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch() | |
| ''' | |
| ''' | |
| import os | |
| import gradio as gr | |
| read_key = os.environ.get('HUGGING_FACE_HUB_TOKEN', None) | |
| with gr.Blocks() as demo: | |
| gr.load("will3d/my_chat_bot_101", hf_token=read_key, src="spaces") | |
| demo.queue(concurrency_count=10, max_size=20) | |
| demo.launch() | |
| ''' | |
| import os | |
| import gradio as gr | |
| read_key = os.environ.get('HF_TOKEN', None) | |
| import gradio as gr | |
| demo = gr.load("will3d/default_chat_bot", hf_token=read_key, src="spaces") | |
| demo.launch() | |
| #gr.Interface.load("huggingface.co/spaces/will3d/my_chat_bot_101").launch() | |