This project is a simple web-based application that allows users to ask questions and get responses using the ollama
chat model. The server is implemented in Python using the http.server
module, and the front-end is built with HTML, CSS, and JavaScript.
- A web interface where users can submit questions.
- The server processes the questions and returns responses using the
ollama
chat model. - The web page has a user-friendly design with a grey background and a responsive design.
- Python 3.x
ollama
library (Ensure it's installed and properly configured)
-
Clone the repository:
git clone https://github.com/Eugeme/olama-server.git cd olama-server
-
Install the required Python packages:
pip install ollama
-
Create the necessary files:
server.py
(The main Python server file)index.html
(The front-end HTML file)
-
Run the server:
python server.py
-
Open your browser and go to
http://127.0.0.1:9999
to see the web interface.
- Open your web browser and navigate to
http://127.0.0.1:9999
. - Enter your question in the input box and click "Submit".
- The server will process your question using the
ollama
chat model and display the response on the page.
This project is licensed under the MIT License.