File size: 2,225 Bytes
b2cc208 74bfd75 e0b8484 b2cc208 e0b8484 b2cc208 e0b8484 b2cc208 e0b8484 b2cc208 e0b8484 b2cc208 e0b8484 74bfd75 b2cc208 74bfd75 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
streamlit # π Streamlit shines - "st.title('Hello, World!')" kicks off your app with flair! # π¨ Paint the UI - "st.button('Click me!')" adds interactive magic buttons! # π Graph it up - "st.line_chart(data)" turns numbers into visual superpowers! # πΌοΈ Show off - "st.image(img)" flashes your pics with pizzazz! asyncio # β³ Async awaits - "await asyncio.sleep(1)" pauses without blocking your vibe! # π Task master - "asyncio.create_task(func())" launches parallel action heroes! # π Loop de loop - "asyncio.run(main())" runs your async empire smoothly! websockets # π Web chat zap - "async with websockets.connect('ws://...')" links chat galaxies! # π‘ Send it fast - "await websocket.send('Hi!')" beams messages at lightspeed! # π§ Listen up - "msg = await websocket.recv()" catches incoming chatter! edge-tts # ποΈ Voice boom - "await edge_tts.Communicate('Hello', 'en-US-Aria').save('out.mp3')" speaks your mind! # π Tune tweak - "edge_tts.Communicate('Yo', 'en-GB-Ryan', rate='+10%')" speeds up the groove! # π£οΈ Echo star - "await communicate.save('file.mp3')" saves your vocal superpower! audio-recorder-streamlit # π€ Mic drop - "audio = audio_recorder()" grabs your voice with style! # π Sound bite - "if audio: st.audio(audio)" plays back your epic words! # π¨οΈ Chat blast - "text = process(audio); st.write(text)" turns speech to text magic! nest-asyncio # π Loop savior - "nest_asyncio.apply()" fixes nested async woes with a wink! # π Run again - "asyncio.run(main())" now works inside Streamlitβs loop party! # β²οΈ Time bender - "nest_asyncio.apply(); await asyncio.sleep(2)" bends time effortlessly! pillow # πΌοΈ Pic power - "img = Image.open('cool.png')" unleashes image wizardry! # π¨ Color swap - "img.convert('RGB')" transforms visuals like a pro! # πΎ Save snap - "img.save('new.jpg')" locks your art in pixel glory! streamlit-paste-button # π Paste magic - "result = paste_image_button('Paste')" snags clipboard images with flair! # πΌοΈ Show it off - "if result.image_data: st.image(result.image_data)" flashes pasted pics! # πΎ Save it quick - "filename = save_pasted_image(result.image_data)" names and stores your art! |