Spaces:
Runtime error
Runtime error
File size: 676 Bytes
8d3019e a31d3b3 8d3019e a31d3b3 8d3019e bc5cf54 8d3019e d04b27b 8d3019e bc5cf54 c026730 bc5cf54 8d3019e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#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()
|