Spaces:
Runtime error
Runtime error
Update app.py
Browse files69 unmodified lines70717273747576777879808182838485868769 unmodified lines# ์ฌ๊ธฐ์ fig ๊ฐ์ฒด๋ฅผ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ๋ฌํ๊ฑฐ๋, ๋ค๋ฅธ ๋ฐฉ์์ผ๋ก ํ์ฉํ ์ ์์ต๋๋ค.def greet(name):return f"Hello, {name}!"# CSS ํ์ผ์ ์ฝ์ด์ค๊ธฐwith open('style.css', 'r') as f:css = f.read()def run_app():interest_rate_data, bnb_prices = fetch_data()return plot_data(interest_rate_data, bnb_prices)iface = gr.Interface(fn=run_app, inputs=[], outputs="plot", title="Financial Data Comparison", live=True)iface.launch()69 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()
app.py+11-11