Spaces:
Build error
Build error
Create app.py
Browse files123456789101112131415161718192021222324import gradio as grimport random
def generate_word(green, yellow, blue): colors = [green, yellow, blue] random.shuffle(colors) return "".join(colors)
interface = gr.Interface( generate_word, inputs=["text", "text", "text"], outputs="text", inputs_label=["Green", "Yellow", "Blue"], inputs_default=["green", "yellow", "blue"], inputs_type=["text", "text", "text"], inputs_layout=["vertical"]*3, examples=[ ["lime", "gold", "navy"], ["olive", "lemon", "teal"] ], description="Generate a random word with specified colors")
interface.launch()app.pyAdded+24