Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
# requirements.txt | |
streamlit>=1.31.0 # Core web app framework - st.write("Hello"), st.button("Click"), st.selectbox("Choose", opts) | |
Pillow>=10.0.0 # Image processing - Image.open("pic.jpg"), img.resize((100,100)), img.save("out.png") | |
plotly>=5.18.0 # Interactive plots - px.scatter(df, x="a", y="b"), px.line(df), fig.show() | |
opencv-python>=4.9.0 # Computer vision - cv2.imread("img.jpg"), cv2.resize(img, (w,h)), cv2.imwrite("out.jpg", img) | |
moviepy>=1.0.3 # Video editing - VideoFileClip("vid.mp4"), clip.resize(0.5), clip.write_videofile("out.mp4") | |
python-dotenv>=1.0.0 # Env vars - load_dotenv(), os.getenv("KEY"), dotenv_values() | |
pytz>=2024.1 # Timezones - timezone('US/Pacific'), dt.astimezone(tz), utc.localize(dt) | |
requests>=2.31.0 # HTTP client - requests.get(url), r.json(), r.raise_for_status() | |
openai>=1.12.0 # OpenAI API - client.chat.complete(), client.images.create(), client.audio.transcribe() | |
beautifulsoup4>=4.12.3 # HTML parse - BeautifulSoup(html), soup.find("div"), soup.find_all("p") | |
PyPDF2>=3.0.1 # PDF tools - PdfReader("doc.pdf"), reader.pages[0].extract_text(), writer.write(f) | |
textract>=1.6.5 # Text extract - process("doc.pdf"), process("doc.docx"), process("text.txt") | |
gradio-client>=0.10.1 # Gradio API - client.predict(text), interface.launch(), client.submit(inputs) | |
huggingface-hub>=0.20.3 # HF models - from_pretrained("model"), list_models(), push_to_hub() | |
audio-recorder-streamlit>=0.0.8 # Audio rec - audio_recorder(), get_audio_data(), save_recording() | |
xmltodict>=0.13.0 # XML parse - parse(xml_str), unparse(dict_obj), parse(f.read()) | |
mistune>=3.0.2 # Markdown - markdown(text), escape(html), renderer.render(tokens) | |
python-docx>=1.0.1 # Word docs - Document(), doc.add_paragraph(), doc.save("out.docx") | |
faiss-cpu>=1.7.4 # Vector DB - IndexFlatL2(d), index.add(vecs), D,I = index.search(q,k) | |
scikit-learn>=1.4.0 # ML tools - fit(X,y), predict(X), train_test_split(X,y) | |
langchain>=0.1.8 # LLM chain - load_chain(), chain.run(input), memory.save_context() | |
tiktoken>=0.6.0 # Tokens - encode(text), decode(tokens), num_tokens = len(tokens) | |
anthropic>=0.18.1 # Claude API - client.messages.create(), client.complete() | |
extra-streamlit-components>=0.1.60 # UI extras - st_marquee(), st_tooltip(), st_modal() | |
edge-tts>=6.1.12 # TTS engine - communicate.run(text), save_to_file(), stream_to_speaker() | |
streamlit-marquee>=0.0.2 # Scroll text - streamlit_marquee(text), set_speed(), set_style() |