Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iversonson/spark-lite-document-translator
This project aims to provide a fast and efficient document translation solution using Spark Lite's machine learning APIs
https://github.com/iversonson/spark-lite-document-translator
spark translation
Last synced: 26 days ago
JSON representation
This project aims to provide a fast and efficient document translation solution using Spark Lite's machine learning APIs
- Host: GitHub
- URL: https://github.com/iversonson/spark-lite-document-translator
- Owner: iversonson
- Created: 2024-08-14T09:06:29.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T09:10:19.000Z (6 months ago)
- Last Synced: 2024-11-16T09:33:59.730Z (3 months ago)
- Topics: spark, translation
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spark Lite Document Translator
[![GitHub license](https://img.shields.io/github/license/your-username/spark-lite-document-translator)](https://github.com/your-username/spark-lite-document-translator/blob/main/LICENSE)
This project provides a simple document translation tool powered by Spark Lite's powerful AI capabilities.
## Features
* Supports various document formats: PDF, DOCX, XLSX, TXT.
* Translates documents into multiple languages using Spark Lite's machine learning APIs.
* Provides a user-friendly web interface built with Gradio.
* Generates a concise summary of the translated document.## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/spark-lite-document-translator.git
cd spark-lite-document-translator
Use code with caution.
Markdown
Install the required packages:
pip install -r requirements.txt
Use code with caution.
Bash
Configure your Spark Lite API credentials:
Open main.py and replace the placeholder values for SPARKAI_APP_ID, SPARKAI_API_SECRET, and SPARKAI_API_KEY with your actual credentials.
Usage
Run the application:
python main.py
Use code with caution.
Bash
Access the web interface in your browser:
The application will print the local URL (e.g., http://127.0.0.1:7860/) to your console.
Upload your document, select the target language, and click "Submit."
The translated text and a summary will be displayed, and they will also be saved to text files in the project directory.