Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.