TorchTransformers-Diffusion-CV-SFT / backup03272025.requirements.txt
awacke1's picture
Rename requirements.txt to backup03272025.requirements.txt
6f7426e verified
# Core dependencies
streamlit # Build interactive web apps with Python! ๐ŸŒ
# - ๐ŸŽฅ Stream video: st.video("movie.mp4") to show a cool science clip!
# - ๐Ÿ“Š Plot data: st.line_chart(data) for visualizing AI model accuracy!
# - ๐Ÿ–ผ๏ธ Show pics: st.image("cat.png", caption="AI-generated kitty!") for fun outputs!
pandas # Crunch data like a pro! ๐Ÿ“ˆ
# - ๐Ÿงฎ Analyze scores: pd.DataFrame({"Student": ["Alex", "Bob"], "Score": [85, 90]}).mean() to avg grades!
# - ๐Ÿ“‹ Filter rows: df[df["Age"] > 18] to find adult learners in a dataset!
# - ๐Ÿ”„ Pivot tables: pd.pivot_table(df, values="Sales", index="Month") for sales trends!
torch # Power AI models with tensors! ๐Ÿ”ฅ
# - ๐Ÿค– Train a model: torch.nn.Linear(10, 2) for a simple neural net!
# - ๐Ÿง  Matrix math: torch.matmul(tensor1, tensor2) to compute embeddings!
# - ๐ŸŽฒ Random tensors: torch.rand(3, 3) for mock data in experiments!
requests # Fetch stuff from the web! ๐ŸŒ
# - ๐Ÿ“š Grab a PDF: requests.get("https://arxiv.org/pdf/2308.03892") to download research!
# - ๐ŸŒค๏ธ Check weather: requests.get("api.weather.com/data") for live updates!
# - ๐Ÿ˜‚ Get jokes: requests.get("api.jokes.com/random") to lighten the mood!
aiofiles # Async file handling for speed! โšก
# - โœ๏ธ Write fast: await aiofiles.open("log.txt", "w").write("Done!") for quick logs!
# - ๐Ÿ“– Read async: await aiofiles.open("data.csv", "r").read() to load files snappy!
# - ๐Ÿ—‘๏ธ Bulk ops: await aiofiles.open("temp.bin", "wb").write(data) for temp storage!
pillow # Play with images like an artist! ๐Ÿ–Œ๏ธ
# - ๐ŸŒˆ Resize pics: Image.open("photo.jpg").resize((100, 100)) for thumbnails!
# - ๐ŸŽจ Color swap: Image.open("dog.png").convert("L") for grayscale pups!
# - โœ‚๏ธ Crop it: Image.open("scene.png").crop((10, 10, 50, 50)) to zoom in!
# PDF processing
PyMuPDF # Master PDFs like a wizard! ๐Ÿ“œ
# - ๐Ÿ–ผ๏ธ PDF to pic: doc[0].get_pixmap().save("page1.png") for snapshots!
# - ๐Ÿ“ Extract text: doc[0].get_text() to pull words from a page!
# - ๐Ÿ”ข Count pages: len(fitz.open("book.pdf")) to know the length!
# Transformers and diffusion models
transformers # Talk to AI models! ๐Ÿ—ฃ๏ธ
# - ๐Ÿค– Chatbot: tokenizer.decode(model.generate(input_ids)) for AI replies!
# - ๐Ÿ“ Summarize: model("Long text here") to shorten essays!
# - ๐Ÿ–‹๏ธ Translate: model("Hola", src_lang="es", tgt_lang="en") for "Hello"!
diffusers # Generate wild images! ๐ŸŽจ
# - ๐Ÿฆ„ Dream art: pipeline("Unicorn in space").images[0].save("magic.png")!
# - ๐ŸŒ† Style swap: pipeline("City in Van Gogh style") for cool remixes!
# - ๐Ÿพ Pet pics: pipeline("Cartoon dog") to make fluffy cartoons!
# OpenAI integration
openai # Tap into GPT magic! โœจ
# - ๐Ÿ“œ Summarize: openai.ChatCompletion.create(messages=[{"role": "user", "content": "Summarize this!"}]) for quick recaps!
# - ๐Ÿ–ผ๏ธ Image OCR: openai.ChatCompletion.create(messages=[{"content": [{"type": "image_url", "image_url": "base64"}]}) for text extraction!
# - ๐Ÿ˜‚ Joke time: openai.ChatCompletion.create(messages=[{"content": "Tell me a joke!"}]) for laughs!
# Additional utilities
glob2 # Find files with flair! ๐Ÿ”
# - ๐Ÿ–ผ๏ธ List pics: glob.glob("*.png") to grab all images!
# - ๐Ÿ“œ PDF hunt: glob.glob("*.pdf") for all your docs!
# - ๐Ÿ—‚๏ธ Wildcards: glob.glob("data_*_2023.txt") for specific files!
pytz # Time zones made easy! โฐ
# - ๐ŸŒ Local time: pytz.timezone("US/Pacific").localize(datetime.now()) for Cali time!
# - โณ UTC shift: datetime.now(pytz.UTC) for global sync!
# - ๐Ÿ•’ Convert: dt.astimezone(pytz.timezone("Asia/Tokyo")) for Tokyo vibes!
tiktoken
verovio
torchvision