/AskMate

Web Application

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Web Application to enhance developer productivity

forthebadge

AskMate is a web application that leverages the Hugging Face API to enhance developer productivity by providing a user-friendly interface for interacting with the DistilBERT model. Users can input content, ask questions related to the content, and receive AI-generated answers.

Features

  • Content Input: Paste or type your content into the provided textarea.
  • Ask Questions: Submit your questions related to the provided content.
  • AI-Generated Answers: Receive insightful answers generated by the DistilBERT model.

Working

Project Image/GIF

Getting Started

To get started with AskMate, follow these steps:

  1. Clone the Repository:

    git clone <repository-url>
  2. Open the HTML File:

    • Navigate to the project folder.
    • Open the index.html file in your preferred web browser.
  3. Configure Hugging Face API:

    • Obtain an API key from Hugging Face.
    • Open script.js in a code editor.
    • Replace the placeholder API key with your actual key:
      const apiUrl = "https://api-inference.huggingface.co/models/distilbert-base-uncased-distilled-squad";
      const apiToken = "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
  4. Ask and Explore:

    • Paste or type content.
    • Ask questions.
    • Explore AI-generated answers!

Technologies Used

Contributing

If you find issues, have suggestions, or want to contribute to AskMate, we welcome your involvement! Follow these steps:

  1. Issue Reporting:

    • If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub.
  2. Feature Requests:

  3. Pull Requests:

    • Contributions are highly appreciated! If you'd like to fix a bug, add a feature, or enhance the project, follow these steps:
      1. Fork the repository.
      2. Create a new branch for your feature: git checkout -b feature-name
      3. Commit your changes: git commit -m 'Add some feature'
      4. Push to the branch: git push origin feature-name
      5. Open a pull request on GitHub.

Support

If you find this project useful or interesting, consider giving it a star! ⭐