shukdevdattaEX commited on
Commit
48c36f4
·
verified ·
1 Parent(s): a0fa8da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -49
app.py CHANGED
@@ -623,55 +623,6 @@ def create_demo():
623
  - **Download HTML**: Download the complete solution as an HTML file (math renders perfectly)
624
  - **Download PDF**: Convert and download solutions as PDF files (math rendered via browser for perfect equations)
625
  - **Print functionality**: Use the "Print to PDF" button in the HTML output to print directly (renders math via MathJax)
626
-
627
- ### Getting Started
628
- #### For Text-Based Problems (OpenRouter)
629
- 1. You'll need an API key from OpenRouter
630
- 2. Sign up at [OpenRouter](https://openrouter.ai/) to get your API key
631
- 3. Enter your API key in the designated field in the "Text Problem Solver" tab
632
-
633
- #### For Image-Based Problems (Together AI)
634
- 1. You'll need an API key from Together AI
635
- 2. Sign up at [Together AI](https://www.together.ai/) to get your API key
636
- 3. Enter your API key in the designated field in the "Image Problem Solver" tab
637
- 4. Upload an image of your math problem
638
- 5. Optionally add text to provide additional context
639
-
640
- ### Solving Math Problems
641
- - For text problems: Type or paste your math problem in the input field
642
- - For image problems: Upload a clear image of the math problem
643
- - Click "Solve Problem" to get a detailed step-by-step solution in HTML format
644
- - Use the download buttons to save HTML or PDF versions
645
- - Click "Print to PDF" within the solution to print directly from your browser
646
-
647
- ### HTML Output Features
648
- - **Professional styling**: Clean, readable format with proper typography
649
- - **Mathematical expressions**: Rendered with MathJax for beautiful LaTeX support
650
- - **Step-by-step sections**: Clearly organized solution steps
651
- - **Print-friendly**: Optimized for printing and PDF conversion
652
- - **Timestamps**: Each solution includes generation timestamp
653
-
654
- ### Tips for Best Results
655
- - Be specific in your problem description
656
- - Include all necessary information
657
- - For complex equations, use clear notation
658
- - For algebraic expressions, describe clearly (AI will format math properly)
659
- - Use parentheses to group terms clearly
660
- - For images, ensure the math problem is clearly visible and well-lit
661
-
662
- ### Types of Problems You Can Solve
663
- - Algebra (equations, inequalities, systems of equations)
664
- - Calculus (derivatives, integrals, limits)
665
- - Trigonometry
666
- - Geometry
667
- - Statistics and Probability
668
- - Number Theory
669
- - And many more!
670
-
671
- ### Required Dependencies
672
- To run this application, you'll need to install:
673
- ```bash
674
- pip install gradio openai together pillow markdown playwright
675
  )
676
  return demo
677
 
 
623
  - **Download HTML**: Download the complete solution as an HTML file (math renders perfectly)
624
  - **Download PDF**: Convert and download solutions as PDF files (math rendered via browser for perfect equations)
625
  - **Print functionality**: Use the "Print to PDF" button in the HTML output to print directly (renders math via MathJax)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
626
  )
627
  return demo
628