Spaces:
Runtime error
Runtime error
| #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() | |