awacke1 commited on
Commit
ab79598
ยท
verified ยท
1 Parent(s): 34a472d

Create requirements.txt

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