Spaces:
Runtime error
Runtime error
File size: 854 Bytes
0f91911 |
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 |
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)
|