Argumeter is a FastAPI-based application that takes a discussion thread as input and evaluates the arguments of the participants. It assigns an overall score to each user, identifies the facts supporting their arguments, and highlights any logical fallacies present.
- Accepts a discussion thread as input via a web form.
- Analyzes each user's arguments.
- Assigns an overall score to each user (on a scale of 1-10).
- Identifies supporting facts for each argument.
- Highlights any logical fallacies in the arguments.
- FastAPI: Web framework for building the app.
- OpenAI API: Used for argument evaluation and scoring.
- Jinja2: Template engine for rendering HTML pages.
- HTML/CSS: Basic frontend for the web form.
- Uvicorn: ASGI server for serving the FastAPI app.
-
Clone the repository:
git clone https://github.com/onurmatik/argumeter.git cd argumeter
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependencies:
touch .env
Add the following line to the .env file:
OPENAI_API_KEY=your_openai_api_key_here
-
Run the app:
uvicorn argumeter:app --reload
The app will now be running on http://127.0.0.1:8000/
- Open your browser and go to http://127.0.0.1:8000/.
- Submit a discussion thread in the provided form. It can be any text containing a dialog. See a sample thread.
- The app will evaluate the arguments and return the results, showing the user scores based on the strength of their arguments and a breakdown of their arguments.
If you’d like to contribute to this project, feel free to submit a pull request or open an issue. Any contributions or feedback are welcome!
This project is licensed under the MIT License.