GradioBasic / gradio1.py
GS7776's picture
Upload folder using huggingface_hub
cff4882 verified
raw
history blame contribute delete
360 Bytes
import gradio as gr # type: ignore
def greet(name, intensity):
return "Hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
inputs=["text", "slider"],
outputs=["text"],
)
demo.launch()
# demo.launch(share=True) # with public URL . # Share your demo with just 1 extra parameter
##
#gradio deploy# to deploy in HF Spaces