Spaces:
Runtime error
Runtime error
Update app.py
Browse files69 unmodified lines70717273747576777879808182838485868769 unmodified lines# ์ฌ๊ธฐ์ fig ๊ฐ์ฒด๋ฅผ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ๋ฌํ๊ฑฐ๋, ๋ค๋ฅธ ๋ฐฉ์์ผ๋ก ํ์ฉํ ์ ์์ต๋๋ค.def my_function(input):return f"Processed: {input}"with open("style.css", "r") as f:css = f.read()iface = gr.Interface(fn=my_function,inputs=gr.Textbox(lines=2, placeholder="Type here..."),outputs="text",css=css,title="My Custom Styled App",description="This is a simple Gradio app with custom CSS.")iface.launch()69 unmodified lines7071727374757677787980818283848586878889909169 unmodified lines# ์ฌ๊ธฐ์ fig ๊ฐ์ฒด๋ฅผ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ๋ฌํ๊ฑฐ๋, ๋ค๋ฅธ ๋ฐฉ์์ผ๋ก ํ์ฉํ ์ ์์ต๋๋ค.def plot_data():# ์์ ๊ทธ๋ํ ์์ฑ ์ฝ๋fig = plt.figure()ax = fig.add_subplot(111)ax.plot([1, 2, 3, 4, 5], [2, 3, 2, 3, 4])return figwith open('style.css', 'r') as f:css = f.read()iface = gr.Interface(fn=plot_data,inputs=[], # ์ ๋ ฅ ํ๋ผ๋ฏธํฐ ์กฐ์ outputs="plot", # ๊ทธ๋ํ ์ถ๋ ฅ ์ค์ css=css,title="Plot Example")iface.launch()
app.py+12-8