Spaces:
Running
on
Zero
Running
on
Zero
File size: 554 Bytes
af40894 27c78c7 1163202 a4e0c15 524b1bf a4e0c15 fb05ecc a4e0c15 1163202 fb05ecc a4e0c15 27c78c7 af40894 badd9c9 121d761 ba4d81f badd9c9 af40894 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
def greet(description,color):
final = 'white background '
description = 'description:' + description.replace(' ', '-')
print(color)
final += description
return final
iface = gr.Interface(fn=greet,
inputs=[gr.Textbox(label='Description'),
gr.Dropdown(label='Color',choices=['Beige','Black','Blue','Brown','Green','Grey','Orange','Pink','Purple','Red','White','Yellow'],multiselect=True)],
outputs="text")
iface.launch() |