A sleek and user-friendly interface for interacting with Ollama models, built with Python and Gradio.
- 🚀 Simple and intuitive web interface
- 🔄 Real-time text generation
- 🎨 Adjustable parameters (temperature, max tokens)
- 📦 Model management capabilities
- 🎯 Support for multiple Ollama models
- 🔌 Custom server URL configuration
- Python 3.8 or higher
- Ollama installed and running
- Available models:
- llama3
- codestral
- phi3
- Clone the repository:
git clone https://github.com/smaranjitghose/HiOllama.git
cd HiOllama
- Create and activate virtual environment:
# Windows
python -m venv env
.\env\Scripts\activate
# Linux/Mac
python3 -m venv env
source env/bin/activate
- Install required packages:
pip install -r requirements.txt
- Install Ollama if you haven't already:
# Linux/Mac
curl -fsSL https://ollama.ai/install.sh | sh
# For Windows, install WSL2 first, then run the above command
- Start the Ollama service:
ollama serve
- Run HiOllama:
python main.py
- Open your browser and navigate to:
http://localhost:7860
- Select a model from the dropdown menu
- Enter your prompt in the text area
- Adjust temperature and max tokens if needed
- Click "Generate" to get the response
- Use the "Model Management" tab to pull new models
Default settings can be modified in main.py
:
DEFAULT_OLLAMA_URL = "http://localhost:11434"
DEFAULT_MODEL_NAME = "llama3"
-
Connection Error
- Ensure Ollama is running (
ollama serve
) - Check if the server URL is correct
- Verify port 11434 is accessible
- Ensure Ollama is running (
-
Model Not Found
- Pull the model first:
ollama pull model_name
- Check available models:
ollama list
- Pull the model first:
-
Port Conflict
- Change the port in
main.py
:app.launch(server_port=7860) # Change to another port
- Change the port in
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Smaranjit Ghose