test-space / app.py
omerXfaruq's picture
Readme refactoring
711d767
raw
history blame
854 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",
title = "Test Space",
description = "Sample Test Space",
)
iface.launch(inline = False)