diff --git a/README.md b/README.md index c84d815..22b448f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# OLLAMA Wikipedia-like Interface +# Llamapedia + + This Streamlit app provides a Wikipedia-like interface for querying an OLLAMA language model. Users can input their queries, and the app will generate informative responses using the configured OLLAMA model. @@ -9,7 +11,7 @@ This Streamlit app provides a Wikipedia-like interface for querying an OLLAMA la pip install -r requirements.txt ``` -2. Configure the `.env` file with your OLLAMA API URL and model name. +2. Configure the `.env` file with your OLLAMA API URL and model name (copy the `env.example` file to `.env` and modify it). 3. Run the Streamlit app: ``` @@ -18,6 +20,10 @@ This Streamlit app provides a Wikipedia-like interface for querying an OLLAMA la 4. Open your web browser and navigate to the URL provided by Streamlit (usually `http://localhost:8501`). +## Tips + +- You can use the `llamapedia.desktop` or `llamapedia.bat` files to run the app. This provides a terminal window for the app and an easy way to launch it with a double-click. + ## Usage 1. Enter your query in the text area provided. diff --git a/llamapedia.bat b/llamapedia.bat new file mode 100644 index 0000000..43599e6 --- /dev/null +++ b/llamapedia.bat @@ -0,0 +1,7 @@ +@echo off +cd /d "%~dp0" +cd .. +streamlit run src/main.py +echo. +echo Press any key to close this window... +pause >nul \ No newline at end of file diff --git a/llamapedia.desktop b/llamapedia.desktop new file mode 100755 index 0000000..028c9fa --- /dev/null +++ b/llamapedia.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Llamapedia +Comment=Your friendly llama-themed encyclopedia +Exec=bash -c 'cd "$(dirname "%k")/" && pwd && streamlit run src/main.py; echo "Press Enter to close this window..."; read' +Icon=icon.png +Terminal=true +Categories=Education;Reference; \ No newline at end of file diff --git a/res/screenshot.png b/res/screenshot.png new file mode 100644 index 0000000..db622f7 Binary files /dev/null and b/res/screenshot.png differ diff --git a/src/main.py b/src/main.py index 6733389..b2a187f 100644 --- a/src/main.py +++ b/src/main.py @@ -3,7 +3,7 @@ from ui import render_wiki_interface, display_response from ollama_service import chat_with_ollama def main(): - st.set_page_config(page_title="OLLAMA Wikipedia", page_icon="📚", layout="wide") + st.set_page_config(page_title="Llamapedia", page_icon="📚", layout="wide") user_query = render_wiki_interface() diff --git a/src/ui.py b/src/ui.py index 543e9ff..dd3ba5f 100644 --- a/src/ui.py +++ b/src/ui.py @@ -70,13 +70,13 @@ def render_wiki_interface(): top_bar = st.container() with top_bar: - # Center the OLLAMA Wikipedia banner + # Center the Llamapedia banner st.markdown( - "