test-space / app.py
omerXfaruq's picture
Initial commit with a draft model
d81bfaf
raw
history blame
775 Bytes
import gradio as gr
def greet(spaces, hf_token, username,space_name,space_description):
return "Thank you for using the draft, it will be completed later"
iface = gr.Interface(
fn=greet,
inputs=[
gr.inputs.Textbox(
lines=4,
placeholder=(
f"Drop space links at each line, ie:\nspaces/Norod78/ComicsHeroHD\nspaces/Amrrs/gradio-sentiment-analyzer"
)
),
gr.inputs.Textbox(lines=1, placeholder="HF Read Token"),
gr.inputs.Textbox(lines=1, placeholder="Your username"),
gr.inputs.Textbox(lines=1, placeholder="Name for the space"),
gr.inputs.Textbox(lines=1, placeholder="Description for the space"),
],
outputs="text"
)
iface.launch()