awacke1 commited on
Commit
c8875fd
Β·
verified Β·
1 Parent(s): 1749dd1

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +69 -42
requirements.txt CHANGED
@@ -1,42 +1,69 @@
1
- streamlit
2
- # 🌟 Streamlit shines - "st.title('Hello, World!')" kicks off your app with flair!
3
- # 🎨 Paint the UI - "st.button('Click me!')" adds interactive magic buttons!
4
- # πŸ“Š Graph it up - "st.line_chart(data)" turns numbers into visual superpowers!
5
- # πŸ–ΌοΈ Show off - "st.image(img)" flashes your pics with pizzazz!
6
-
7
- asyncio
8
- # ⏳ Async awaits - "await asyncio.sleep(1)" pauses without blocking your vibe!
9
- # πŸš€ Task master - "asyncio.create_task(func())" launches parallel action heroes!
10
- # πŸ”„ Loop de loop - "asyncio.run(main())" runs your async empire smoothly!
11
-
12
- nest-asyncio
13
- # πŸ”„ Loop savior - "nest_asyncio.apply()" fixes nested async woes with a wink!
14
- # πŸš€ Run again - "asyncio.run(main())" now works inside Streamlit’s loop party!
15
- # ⏲️ Time bender - "nest_asyncio.apply(); await asyncio.sleep(2)" bends time effortlessly!
16
-
17
- websockets
18
- # 🌐 Web chat zap - "async with websockets.connect('ws://...')" links chat galaxies!
19
- # πŸ“‘ Send it fast - "await websocket.send('Hi!')" beams messages at lightspeed!
20
- # 🎧 Listen up - "msg = await websocket.recv()" catches incoming chatter!
21
-
22
- edge-tts
23
- # πŸŽ™οΈ Voice boom - "await edge_tts.Communicate('Hello', 'en-US-Aria').save('out.mp3')" speaks your mind!
24
- # πŸ”Š Tune tweak - "edge_tts.Communicate('Yo', 'en-GB-Ryan', rate='+10%')" speeds up the groove!
25
- # πŸ—£οΈ Echo star - "await communicate.save('file.mp3')" saves your vocal superpower!
26
-
27
- audio-recorder-streamlit
28
- # 🎀 Mic drop - "audio = audio_recorder()" grabs your voice with style!
29
- # πŸ”‰ Sound bite - "if audio: st.audio(audio)" plays back your epic words!
30
- # πŸ—¨οΈ Chat blast - "text = process(audio); st.write(text)" turns speech to text magic!
31
-
32
- pillow
33
- # πŸ–ΌοΈ Pic power - "img = Image.open('cool.png')" unleashes image wizardry!
34
- # 🎨 Color swap - "img.convert('RGB')" transforms visuals like a pro!
35
- # πŸ’Ύ Save snap - "img.save('new.jpg')" locks your art in pixel glory!
36
-
37
- streamlit-paste-button
38
- # πŸ“‹ Paste magic - "result = paste_image_button('Paste')" snags clipboard images with flair!
39
- # πŸ–ΌοΈ Show it off - "if result.image_data: st.image(result.image_data)" flashes pasted pics!
40
- # πŸ’Ύ Save it quick - "filename = save_pasted_image(result.image_data)" names and stores your art!
41
-
42
- pyPDF2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ streamlit==1.31.0
2
+ # 🎨 Build interactive web apps: st.title("Hello"), st.button("Click"), st.image("pic.png")
3
+ # πŸ“Š Display data: st.dataframe(df), st.plotly_chart(fig), st.write("Text")
4
+ # πŸš€ Create UI: st.slider("Range", 0, 100), st.selectbox("Choose", options), st.file_uploader("Upload")
5
+
6
+ asyncio==3.4.3
7
+ # πŸ”„ Run async tasks: await asyncio.sleep(1), asyncio.run(main()), asyncio.gather(*tasks)
8
+ # 🌐 Handle coroutines: async def fetch(), await coro(), asyncio.create_task(func())
9
+ # ⏳ Manage event loops: loop = asyncio.get_event_loop(), loop.run_until_complete(), asyncio.ensure_future()
10
+
11
+ websockets==12.0
12
+ # 🌐 WebSocket server: async with websockets.serve(handler, "localhost", 8765): await asyncio.Future()
13
+ # πŸ“‘ Client connect: async with websockets.connect("ws://localhost:8765") as ws: await ws.send("Hi")
14
+ # πŸ”Š Real-time comms: async for msg in ws: print(msg), await ws.recv(), ws.send("Response")
15
+
16
+ pillow==10.2.0
17
+ # πŸ–ΌοΈ Load images: img = Image.open("file.png"), img.resize((100, 100)), img.save("out.png")
18
+ # 🎨 Process images: img.convert("RGB"), ImageDraw.Draw(img).text((10, 10), "Hello"), img.rotate(90)
19
+ # πŸ“Έ Manipulate: img.crop((0, 0, 50, 50)), img.filter(ImageFilter.BLUR), img.thumbnail((50, 50))
20
+
21
+ edge_tts==6.1.12
22
+ # πŸŽ™οΈ Text-to-speech: comm = edge_tts.Communicate("Hello", "en-US-AriaNeural"), await comm.save("out.mp3")
23
+ # πŸ”Š Customize voice: edge_tts.Communicate(text, voice="en-GB-SoniaNeural", rate="+10%"), await comm.save()
24
+ # πŸ“’ Generate audio: async def speak(text): await edge_tts.Communicate(text, "en-US-GuyNeural").save("file.mp3")
25
+
26
+ audio-recorder-streamlit==0.0.8
27
+ # 🎀 Record audio: audio_bytes = audio_recorder(), st.audio(audio_bytes, format="audio/wav")
28
+ # πŸ”‰ Capture voice: if audio_bytes: process_audio(audio_bytes), st.write("Recording...")
29
+ # πŸ“₯ Save recording: with open("recording.wav", "wb") as f: f.write(audio_recorder())
30
+
31
+ nest_asyncio==1.6.0
32
+ # πŸ”§ Fix nested loops: nest_asyncio.apply(), asyncio.run(main()), loop.run_until_complete(coro())
33
+ # 🌐 Enable async in sync: nest_asyncio.apply() before asyncio.run() in Jupyter/Streamlit
34
+ # ⏳ Patch event loop: import nest_asyncio; nest_asyncio.apply() for multiple event loops
35
+
36
+ streamlit-paste-button==0.1.1
37
+ # πŸ“‹ Paste images: result = paste_image_button("Paste"), if result.image_data: st.image(result.image_data)
38
+ # βœ‚οΈ Capture clipboard: paste_data = paste_image_button("Click"), st.write(paste_data.text_data)
39
+ # πŸ–ΌοΈ Process paste: if paste_image_button("Paste").image_data: save_image(result.image_data)
40
+
41
+ pypdf2==3.0.1
42
+ # πŸ“œ Read PDFs: reader = PdfReader("file.pdf"), text = reader.pages[0].extract_text(), num_pages = len(reader.pages)
43
+ # πŸ“ Extract text: for page in PdfReader("doc.pdf").pages: st.write(page.extract_text())
44
+ # πŸ“š Parse PDF: pdf = PdfReader(open("file.pdf", "rb")), st.write(pdf.metadata), page_count = len(pdf.pages)
45
+
46
+ anthropic==0.34.2
47
+ # πŸ€– AI responses: client = anthropic.Anthropic(api_key="key"), resp = client.messages.create(model="claude-3", messages=[...])
48
+ # πŸ“’ Claude chat: msg = client.messages.create(model="claude-3-sonnet", max_tokens=1000, messages=[{"role": "user", "content": "Hi"}])
49
+ # πŸ” Query AI: response = client.completions.create(model="claude-2", prompt="Hello", max_tokens_to_sample=512)
50
+
51
+ openai==1.45.0
52
+ # 🧠 GPT queries: client = openai.OpenAI(api_key="key"), resp = client.chat.completions.create(model="gpt-4", messages=[...])
53
+ # πŸ“ Generate text: completion = openai.Completion.create(model="text-davinci-003", prompt="Write a story", max_tokens=100)
54
+ # πŸ”Š AI chat: chat = client.chat.completions.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello"}])
55
+
56
+ gradio-client==1.3.0
57
+ # 🌐 Call Gradio APIs: client = Client("user/repo"), result = client.predict("input", api_name="/predict")
58
+ # πŸ“‘ Remote inference: prediction = Client("awacke1/Arxiv-Paper-Search").predict("query", 10, "search", "model")
59
+ # πŸ” Fetch results: resp = client.predict(param1, param2, api_name="/endpoint"), st.write(resp)
60
+
61
+ python-dotenv==1.0.1
62
+ # πŸ”‘ Load env vars: load_dotenv(), api_key = os.getenv("API_KEY"), st.write(os.getenv("SECRET"))
63
+ # 🌍 Config from .env: from dotenv import load_dotenv; load_dotenv(); db_url = os.getenv("DB_URL")
64
+ # πŸ“‹ Secure secrets: load_dotenv(".env"), token = os.getenv("TOKEN"), client = SomeClient(token)
65
+
66
+ streamlit-marquee==0.1.0
67
+ # πŸŽ₯ Scrolling text: streamlit_marquee(content="Hello", background="#000", color="#FFF", font-size="20px")
68
+ # πŸ“£ Dynamic marquee: streamlit_marquee(content="News", animationDuration="10s", width="100%")
69
+ # 🌈 Styled ticker: streamlit_marquee(content="Update", background="#1E1E1E", lineHeight="30px")