Skip to content

Commit

Permalink
fixed deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
anbo-de committed Mar 7, 2024
1 parent 34171bb commit b4cfc0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ GITHUB_REPO = "https://github.com/WSE-research/LLM-based-explanations-for-SPARQL
DESCRIPTION = "\nLoriS explains your SPARQL query using multiple LLMs (Large Language Models), s.t., it becomes easier to understand [SPARQL queries](https://www.w3.org/TR/rdf-sparql-query/). For configuration, please see the sidebar. \n\nFor more details, see our [GitHub repository](%s) where you can also [submit bug reports](%s) and [feature requests](%s)."
META_DESCRIPTION = "Loris -- LLM-based explanations for SPARQL queries -- explains your SPARQL query using multiple LLMs, s.t., it becomes easier to understand SPARQL queries."
REPLACE_INDEX_HTML_CONTENT = True
CANONICAL_URL = True
CANONICAL_URL = https://wse-research.org/LoriS--LLM-based-explanations-for-SPARQL-queries
BACKEND_URL = http://141.57.8.18:8099
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ENV COLORTERM=24bit
ENV UPLOAD_DIRECTORY=/app/working_directory

# do a dry run to see if the applications would starts (so, we are not surprised if it doesn't work during the real start of the container)
RUN (export DRY_RUN=True; export BACKEND_URL="none"; streamlit run loris--llm-based-explanations-for-sparql-queries.py &) && sleep 5 && curl http://localhost:${SERVER_PORT}/
RUN (export DRY_RUN=True; export BACKEND_URL=$BACKEND_URL; streamlit run loris--llm-based-explanations-for-sparql-queries.py &) && sleep 5 && curl http://localhost:${SERVER_PORT}/

EXPOSE $SERVER_PORT
HEALTHCHECK CMD curl --fail http://localhost:$SERVER_PORT/_stcore/health
Expand Down
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ The application is available at https://hub.docker.com/r/wseresearch/loris--LLM-

[source, bash]
----
docker build -t TODO:latest .
docker build -t loris:latest .
----


==== Run Docker Image

[source, bash]
----
docker run --rm -p 8501:8501 --name TODO TODO:latest
docker run --rm -p 8501:8501 --name loris loris:latest
----

Now, you can access the application at http://localhost:8501.
Expand Down
6 changes: 2 additions & 4 deletions loris--llm-based-explanations-for-sparql-queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
GITHUB_REPO, GITHUB_REPO + "/issues/new", GITHUB_REPO + "/issues/new")
META_DESCRIPTION = config('META_DESCRIPTION', default=None)

REPLACE_INDEX_HTML_CONTENT = config(
'REPLACE_INDEX_HTML_CONTENT', default=False, cast=bool)
REPLACE_INDEX_HTML_CONTENT = config('REPLACE_INDEX_HTML_CONTENT', default=False, cast=bool)
CANONICAL_URL = config('CANONICAL_URL', default=None)
ADDITIONAL_HTML_HEAD_CONTENT = config(
'ADDITIONAL_HTML_HEAD_CONTENT', default=None)
ADDITIONAL_HTML_HEAD_CONTENT = config('ADDITIONAL_HTML_HEAD_CONTENT', default=None)
WRAP = True

PAGE_TITLE = "LoriS -- LLM-based explanations for SPARQL queries"
Expand Down

0 comments on commit b4cfc0e

Please sign in to comment.