Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +28 -147
requirements.txt
CHANGED
|
@@ -1,147 +1,28 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
# 3. write_videofile() – Export videos to a file.
|
| 30 |
-
|
| 31 |
-
python-dotenv # Load environment variables from .env files.
|
| 32 |
-
# Top functions:
|
| 33 |
-
# 1. load_dotenv() – Load variables from .env.
|
| 34 |
-
# 2. dotenv_values() – Retrieve values as a dictionary.
|
| 35 |
-
# 3. set_key() – Set new environment variables.
|
| 36 |
-
|
| 37 |
-
pytz # Timezone definitions for datetime handling.
|
| 38 |
-
# Top functions:
|
| 39 |
-
# 1. timezone() – Get timezone info.
|
| 40 |
-
# 2. localize() – Attach timezone info to naive datetimes.
|
| 41 |
-
# 3. utc() – Get the UTC timezone.
|
| 42 |
-
|
| 43 |
-
requests # HTTP requests to fetch data from APIs.
|
| 44 |
-
# Top functions:
|
| 45 |
-
# 1. get() – Perform HTTP GET requests.
|
| 46 |
-
# 2. post() – Send POST data to an endpoint.
|
| 47 |
-
# 3. json() – Parse JSON from responses.
|
| 48 |
-
|
| 49 |
-
openai # Interface for OpenAI APIs (ChatGPT, DALL·E).
|
| 50 |
-
# Top functions:
|
| 51 |
-
# 1. openai.ChatCompletion.create() – Generate chat responses.
|
| 52 |
-
# 2. openai.Image.create() – Create images with DALL·E.
|
| 53 |
-
# 3. openai.Audio.transcribe() – Transcribe audio to text.
|
| 54 |
-
|
| 55 |
-
beautifulsoup4 # Web scraping and parsing HTML/XML.
|
| 56 |
-
# Top functions:
|
| 57 |
-
# 1. BeautifulSoup() – Parse HTML/XML documents.
|
| 58 |
-
# 2. find() – Search for elements.
|
| 59 |
-
# 3. find_all() – Retrieve multiple elements.
|
| 60 |
-
|
| 61 |
-
PyPDF2 # PDF processing and extraction.
|
| 62 |
-
# Top functions:
|
| 63 |
-
# 1. PdfReader() – Read PDF files.
|
| 64 |
-
# 2. PdfWriter() – Create or manipulate PDFs.
|
| 65 |
-
# 3. extract_text() – Extract text from PDF pages.
|
| 66 |
-
|
| 67 |
-
textract # Extract text from documents of various formats.
|
| 68 |
-
# Top functions:
|
| 69 |
-
# 1. process() – Extract text from any file format.
|
| 70 |
-
# 2. exceptions() – Handle specific errors.
|
| 71 |
-
# 3. is_supported() – Check if file type is supported.
|
| 72 |
-
|
| 73 |
-
gradio-client # Client to interact with Gradio interfaces.
|
| 74 |
-
# Top functions:
|
| 75 |
-
# 1. submit() – Submit input to Gradio endpoints.
|
| 76 |
-
# 2. predict() – Call Gradio API predictions.
|
| 77 |
-
# 3. Interface() – Define and load models.
|
| 78 |
-
|
| 79 |
-
huggingface-hub # Access Hugging Face models and datasets.
|
| 80 |
-
# Top functions:
|
| 81 |
-
# 1. from_pretrained() – Load pretrained models.
|
| 82 |
-
# 2. snapshot_download() – Download model snapshots.
|
| 83 |
-
# 3. list_models() – List models available.
|
| 84 |
-
|
| 85 |
-
audio-recorder-streamlit # Streamlit component for audio recording.
|
| 86 |
-
# Top functions:
|
| 87 |
-
# 1. audio_recorder() – Record audio directly in Streamlit apps.
|
| 88 |
-
|
| 89 |
-
xmltodict # Parse XML into Python dictionaries.
|
| 90 |
-
# Top functions:
|
| 91 |
-
# 1. parse() – Convert XML to dictionary.
|
| 92 |
-
# 2. unparse() – Convert dictionary back to XML.
|
| 93 |
-
# 3. ordered_dict() – Maintain element order.
|
| 94 |
-
|
| 95 |
-
mistune # Markdown parsing in Python.
|
| 96 |
-
# Top functions:
|
| 97 |
-
# 1. markdown() – Render markdown text to HTML.
|
| 98 |
-
# 2. escape() – Escape HTML elements.
|
| 99 |
-
# 3. renderer() – Customize rendering options.
|
| 100 |
-
|
| 101 |
-
python-docx # Create and modify .docx files.
|
| 102 |
-
# Top functions:
|
| 103 |
-
# 1. Document() – Create or load Word documents.
|
| 104 |
-
# 2. add_paragraph() – Add paragraphs.
|
| 105 |
-
# 3. save() – Save to .docx format.
|
| 106 |
-
|
| 107 |
-
faiss-cpu # Efficient similarity search and clustering.
|
| 108 |
-
# Top functions:
|
| 109 |
-
# 1. IndexFlatL2() – Create L2 norm index.
|
| 110 |
-
# 2. search() – Perform similarity searches.
|
| 111 |
-
# 3. add() – Add vectors to the index.
|
| 112 |
-
|
| 113 |
-
scikit-learn # Machine learning tools.
|
| 114 |
-
# Top functions:
|
| 115 |
-
# 1. fit() – Train models.
|
| 116 |
-
# 2. predict() – Generate predictions.
|
| 117 |
-
# 3. train_test_split() – Split datasets for training/testing.
|
| 118 |
-
|
| 119 |
-
langchain # Chain LLM calls and workflows.
|
| 120 |
-
# Top functions:
|
| 121 |
-
# 1. load_chain() – Load chain pipelines.
|
| 122 |
-
# 2. llm() – Access LLM models.
|
| 123 |
-
# 3. memory() – Add conversational memory.
|
| 124 |
-
|
| 125 |
-
tiktoken # Tokenizer for OpenAI models.
|
| 126 |
-
# Top functions:
|
| 127 |
-
# 1. encode() – Encode text into tokens.
|
| 128 |
-
# 2. decode() – Decode tokens to text.
|
| 129 |
-
# 3. get_encoding() – Fetch encoding method.
|
| 130 |
-
|
| 131 |
-
anthropic # Interface for Claude AI models.
|
| 132 |
-
# Top functions:
|
| 133 |
-
# 1. chat() – Generate Claude-based chat responses.
|
| 134 |
-
|
| 135 |
-
extra-streamlit-components # Additional Streamlit components.
|
| 136 |
-
# Top functions:
|
| 137 |
-
# 1. st_marquee() – Add scrolling marquees.
|
| 138 |
-
# 2. st_tooltip() – Add tooltips to elements.
|
| 139 |
-
# 3. st_modal() – Create modals.
|
| 140 |
-
|
| 141 |
-
edge_tts==6.1.12 # Text-to-speech via Edge browser.
|
| 142 |
-
# Top functions:
|
| 143 |
-
# 1. Communicate() – Convert text to speech.
|
| 144 |
-
|
| 145 |
-
st_marquee # Scrolling text marquee for Streamlit apps.
|
| 146 |
-
# Top functions:
|
| 147 |
-
# 1. st_marquee() – Display scrolling text.
|
|
|
|
| 1 |
+
# requirements.txt
|
| 2 |
+
|
| 3 |
+
streamlit>=1.31.0 # Core web app framework - st.write("Hello"), st.button("Click"), st.selectbox("Choose", opts)
|
| 4 |
+
Pillow>=10.0.0 # Image processing - Image.open("pic.jpg"), img.resize((100,100)), img.save("out.png")
|
| 5 |
+
plotly>=5.18.0 # Interactive plots - px.scatter(df, x="a", y="b"), px.line(df), fig.show()
|
| 6 |
+
opencv-python>=4.9.0 # Computer vision - cv2.imread("img.jpg"), cv2.resize(img, (w,h)), cv2.imwrite("out.jpg", img)
|
| 7 |
+
moviepy>=1.0.3 # Video editing - VideoFileClip("vid.mp4"), clip.resize(0.5), clip.write_videofile("out.mp4")
|
| 8 |
+
python-dotenv>=1.0.0 # Env vars - load_dotenv(), os.getenv("KEY"), dotenv_values()
|
| 9 |
+
pytz>=2024.1 # Timezones - timezone('US/Pacific'), dt.astimezone(tz), utc.localize(dt)
|
| 10 |
+
requests>=2.31.0 # HTTP client - requests.get(url), r.json(), r.raise_for_status()
|
| 11 |
+
openai>=1.12.0 # OpenAI API - client.chat.complete(), client.images.create(), client.audio.transcribe()
|
| 12 |
+
beautifulsoup4>=4.12.3 # HTML parse - BeautifulSoup(html), soup.find("div"), soup.find_all("p")
|
| 13 |
+
PyPDF2>=3.0.1 # PDF tools - PdfReader("doc.pdf"), reader.pages[0].extract_text(), writer.write(f)
|
| 14 |
+
textract>=1.6.5 # Text extract - process("doc.pdf"), process("doc.docx"), process("text.txt")
|
| 15 |
+
gradio-client>=0.10.1 # Gradio API - client.predict(text), interface.launch(), client.submit(inputs)
|
| 16 |
+
huggingface-hub>=0.20.3 # HF models - from_pretrained("model"), list_models(), push_to_hub()
|
| 17 |
+
audio-recorder-streamlit>=0.0.8 # Audio rec - audio_recorder(), get_audio_data(), save_recording()
|
| 18 |
+
xmltodict>=0.13.0 # XML parse - parse(xml_str), unparse(dict_obj), parse(f.read())
|
| 19 |
+
mistune>=3.0.2 # Markdown - markdown(text), escape(html), renderer.render(tokens)
|
| 20 |
+
python-docx>=1.0.1 # Word docs - Document(), doc.add_paragraph(), doc.save("out.docx")
|
| 21 |
+
faiss-cpu>=1.7.4 # Vector DB - IndexFlatL2(d), index.add(vecs), D,I = index.search(q,k)
|
| 22 |
+
scikit-learn>=1.4.0 # ML tools - fit(X,y), predict(X), train_test_split(X,y)
|
| 23 |
+
langchain>=0.1.8 # LLM chain - load_chain(), chain.run(input), memory.save_context()
|
| 24 |
+
tiktoken>=0.6.0 # Tokens - encode(text), decode(tokens), num_tokens = len(tokens)
|
| 25 |
+
anthropic>=0.18.1 # Claude API - client.messages.create(), client.complete()
|
| 26 |
+
extra-streamlit-components>=0.1.60 # UI extras - st_marquee(), st_tooltip(), st_modal()
|
| 27 |
+
edge-tts>=6.1.12 # TTS engine - communicate.run(text), save_to_file(), stream_to_speaker()
|
| 28 |
+
streamlit-marquee>=0.0.2 # Scroll text - streamlit_marquee(text), set_speed(), set_style()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|