GitHunt
VI

VictorBaumgartner/authentic_text

Authentic text is an humanizer based on a specific style of a text thanks to AI

AuthentiText ๐Ÿ“

Overview ๐ŸŒŸ

AuthentiText is a Streamlit-based web application designed to analyze and humanize text, transforming robotic or AI-generated content into natural, engaging, and authentic writing. It uses the OpenAI API to evaluate text authenticity with a "Human Score" and provides suggestions for improvement, while also offering a humanization feature to rewrite text in various styles.

Features โœจ

  • Text Analysis ๐Ÿ”: Assesses text for human-like qualities with a strict scoring system (0-100% Human Score).
  • Text Humanization โœ๏ธ: Rewrites text to sound natural and relatable in predefined or custom styles.
  • Dual Theme Support ๐ŸŽจ: Offers light and dark themes with customizable CSS for a modern UI.
  • Custom Styles ๐ŸŽญ: Allows users to define and save custom writing styles with examples.
  • Actionable Feedback ๐Ÿ’ก: Provides detailed feedback and improvement suggestions based on analysis.

Installation ๐Ÿ› ๏ธ

Prerequisites ๐Ÿ“‹

  • Python 3.8+
  • An OpenAI API key (stored in a .env file or Streamlit secrets)

Setup ๐Ÿš€

  1. Clone the repository:
    git clone <repository-url>
    cd authentiText
  2. Install dependencies:
    pip install -r requirements.txt
  3. Create a .env file in the project root and add your OpenAI API key:
    AIMLAPI_KEY=your_api_key_here
    
  4. Run the application:
    streamlit run app.py

Usage ๐ŸŽฎ

  1. Input Text โœ๏ธ: Paste your text into the text area on the main interface.
  2. Analyze Text ๐Ÿ”Ž: Click "Analyze Text" to get a Human Score and feedback.
  3. Humanize Text ๐ŸŒฑ: Select a style (e.g., Conversational, Formal) and click "Humanize Text" to rewrite the text.
  4. Custom Styles ๐ŸŽจ: Use the expander to define and save a new style with a name and example.
  5. Re-Analyze ๐Ÿ”„: Review the humanized text and analyze it again for a new Human Score.

Configuration โš™๏ธ

  • API Key ๐Ÿ”‘: Required and loaded from .env or Streamlit secrets.
  • Model ๐Ÿค–: Uses gpt-3.5-turbo for analysis and humanization.
  • Themes ๐ŸŒ—: Switch between "Bright" and "Dark" via the sidebar settings.

File Structure ๐Ÿ“‚

  • app.py: Main application script containing UI and backend logic.
  • .env: Environment file for API key (not included in version control).
  • requirements.txt: List of Python dependencies.

Contributing ๐Ÿค

Feel free to fork the repository, submit issues, or create pull requests for enhancements or bug fixes.

License ๐Ÿ“œ

[MIT License] - See the LICENSE file for details.

Contact ๐Ÿ“ง

For questions or support, reach out via the project repository or email.


Made by VIK ๐ŸŽ‰