tonyassi's picture
Update app.py
a4e0c15
raw
history blame
521 Bytes
import gradio as gr
def greet(description,color):
final = 'white background '
final += 'description:' description.replace(' ', '-')
print(color)
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()