tonyassi's picture
Update app.py
fb05ecc
raw
history blame
554 Bytes
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()