File size: 1,342 Bytes
0c880e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
streamlit # π - Build interactive apps. Ex: st.write("Hello, AI!") β Displays text | Web magic unleashed! β¨ # π - Visualize data easily. Ex: st.line_chart({"data": [1, 2, 3]}) β Plots line | Graphs in a snap! π # πΌοΈ - Show Mermaid graphs. Ex: st.mermaid("graph TD A-->B") β Renders diagram | Visualize like a pro! π§© transformers # π€ - Generate text fast. Ex: pipeline("text-generation")("Tell me a story") β Story string | Tales on demand! π # π - Analyze sentiment. Ex: pipeline("sentiment-analysis")("I love AI") β Positive dict | Feelings decoded! π # π§ - Load smart models. Ex: AutoModel.from_pretrained("bert-base-uncased") β BERT model | NLP power boost! β‘ torch # π₯ - Crunch numbers. Ex: torch.tensor([1.0, 2.0]) β Tensor([1., 2.]) | Math made fiery! π’ # π οΈ - Build neural nets. Ex: torch.nn.Linear(10, 5) β Linear layer | Deep learning bricks! ποΈ # π - Train models. Ex: torch.optim.Adam(model.parameters(), lr=0.001) β Optimizer | Learning takes flight! π pandas # π - Load data frames. Ex: pd.read_csv("data.csv") β DataFrame | Data wrangling begins! πΌ # π - Filter rows. Ex: df[df["age"] > 30] β Filtered DataFrame | Search with ease! π΅οΈ # π - Plot insights. Ex: df.plot(kind="bar", x="name") β Bar chart | Visualize trends! π |