Update app.py
Browse files90 unmodified lines9192939495969734 unmodified lines13213313413513613713890 unmodified lineswith gr.Row():btn_story = gr.Button("π Write a Sci-Fi Story", size="sm")btn_code = gr.Button("π Python Palindrome Code", size="sm")btn_speaker = gr.Button("π How do ported speakers work?", size="sm")# Interactive parameters under a collapsible menuwith gr.Accordion("βοΈ Advanced AI Settings", open=False):34 unmodified lines# Hook up the quick prompt buttons to auto-fill the input box!btn_story.click(lambda: "Write a short, engaging story about a lost astronaut who finds a cosmic garden floating in space.", outputs=input_text)btn_code.click(lambda: "Write a complete Python function that checks if a string is a palindrome. Explain how it works step-by-step.", outputs=input_text)btn_speaker.click(lambda: "In clear, simple terms, explain the science of how a 2-way ported speaker enclosure improves bass frequencies.", outputs=input_text)# Launch the interactive applicationdemo.launch()90 unmodified lines9192939495969734 unmodified lines13213313413513613713890 unmodified lineswith gr.Row():btn_story = gr.Button("π Write a Sci-Fi Story", size="sm")btn_code = gr.Button("π Python Palindrome Code", size="sm")btn_speaker = gr.Button("π° Trending News Now", size="sm")# Interactive parameters under a collapsible menuwith gr.Accordion("βοΈ Advanced AI Settings", open=False):34 unmodified lines# Hook up the quick prompt buttons to auto-fill the input box!btn_story.click(lambda: "Write a short, engaging story about a lost astronaut who finds a cosmic garden floating in space.", outputs=input_text)btn_code.click(lambda: "Write a complete Python function that checks if a string is a palindrome. Explain how it works step-by-step.", outputs=input_text)btn_speaker.click(lambda: "In clear, simple terms, explain the trending news happening now.", outputs=input_text)# Launch the interactive applicationdemo.launch()
app.py+2-2