tonyassi's picture
Update app.py
27c78c7
raw
history blame
453 Bytes
import gradio as gr
def greet(description,color):
final = 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()