Spaces:
Sleeping
Sleeping
Commit History
-
Update app.py
Verified signatureKey Functionality and Components The application is a combined mechanical calculator and a Hugging Face LLM inference engine deployed via Gradio. 1. Gear Dimension Calculator (gear_calc) Purpose: Takes standard gear inputs—Number of Teeth (N), Diametral Pitch (Pd in teeth/inch), and Pressure Angle (ϕ in degrees)—and applies common mechanical engineering formulas (e.g., for Pitch Diameter, Base Diameter, Addendum, Dedendum, etc.). Output: Returns a comprehensive dictionary of over 18 key gear dimensions, calculated and provided in both millimeters (mm) and inches (in). 2. Large Language Model (LLM) Integration Model: Uses the HuggingFaceTB/SmolLM2-135M-Instruct model, a small, fast, instruction-following model suitable for low-latency tasks. Inference: The transformers pipeline is initialized with deterministic settings (do_sample=False, temperature=0.0) to ensure the LLM provides the most compliant, non-creative, and factual response possible. Recommendation (llm_explain): This fu…027bf26 -
Create requirements.txt
Verified signatured3e53c9 -
Create requirements
Verified signature4add8d0 -
Create app.py
Verified signatureKey Functionality and Components The application is a combined mechanical calculator and a Hugging Face LLM inference engine deployed via Gradio. 1. Gear Dimension Calculator (gear_calc) Purpose: Takes standard gear inputs—Number of Teeth (N), Diametral Pitch (Pd in teeth/inch), and Pressure Angle (ϕ in degrees)—and applies common mechanical engineering formulas (e.g., for Pitch Diameter, Base Diameter, Addendum, Dedendum, etc.). Output: Returns a comprehensive dictionary of over 18 key gear dimensions, calculated and provided in both millimeters (mm) and inches (in). 2. Large Language Model (LLM) Integration Model: Uses the HuggingFaceTB/SmolLM2-135M-Instruct model, a small, fast, instruction-following model suitable for low-latency tasks. Inference: The transformers pipeline is initialized with deterministic settings (do_sample=False, temperature=0.0) to ensure the LLM provides the most compliant, non-creative, and factual response possible. Recommendation (llm_explain): This fu…7c497b8 -
initial commit
Verified signature5dd86ae