gradiodemo3 / app.py
JackHack's picture
Create app.py
5d78c80 verified
raw
history blame contribute delete
398 Bytes
import gradio as gr
def process_data(text, image):
# ๅ‡่ฎพ่ฟ™้‡Œๆœ‰ๆ•ฐๆฎๅค„็†้€ป่พ‘
processed_text = text.upper()
return processed_text, image
iface = gr.Interface(
fn=process_data,
inputs=[gr.Textbox(label="่พ“ๅ…ฅๆ–‡ๆœฌ"), gr.Image(label="ไธŠไผ ๅ›พ็‰‡")],
outputs=[gr.Text(label="ๅค„็†ๅŽ็š„ๆ–‡ๆœฌ"), gr.Image(label="ๅŽŸๅง‹ๅ›พ็‰‡")],
theme='dark'
)
iface.launch()