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.
- 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.
To get started with AskMate, follow these steps:
-
Clone the Repository:
git clone <repository-url>
-
Open the HTML File:
- Navigate to the project folder.
- Open the
index.html
file in your preferred web browser.
-
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";
-
Ask and Explore:
- Paste or type content.
- Ask questions.
- Explore AI-generated answers!
- HTML
- CSS
- JavaScript
- Hugging Face API
If you find issues, have suggestions, or want to contribute to AskMate, we welcome your involvement! Follow these steps:
-
Issue Reporting:
- If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub.
-
Feature Requests:
- If you have ideas for new features or enhancements, feel free to submit a feature request.
-
Pull Requests:
- Contributions are highly appreciated! If you'd like to fix a bug, add a feature, or enhance the project, follow these steps:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-name
- Open a pull request on GitHub.
- Contributions are highly appreciated! If you'd like to fix a bug, add a feature, or enhance the project, follow these steps:
If you find this project useful or interesting, consider giving it a star! ⭐