Skip to content

Commit

Permalink
Moved env and adjusted use
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed May 21, 2024
1 parent cd4c011 commit 853bdc6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Empty file.
10 changes: 5 additions & 5 deletions explanation_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from st_aggrid import GridOptionsBuilder, AgGrid, GridUpdateMode, JsCode
import pandas as pd
from streamlit_sortables import sort_items
import os
from decouple import config

st.set_page_config(layout="wide")

Expand All @@ -23,10 +23,10 @@
QE_SPARQLEXECUTER = "QE-SparqlQueryExecutedAutomaticallyOnWikidataOrDBpedia"
QBE_QANSWER = "QAnswerQueryBuilderAndExecutor"

QANARY_PIPELINE_URL = os.environ[QANARY_PIPELINE_URL]
QANARY_EXPLANATION_SERVICE_URL = os.environ[QANARY_EXPLANATION_SERVICE_URL]
QANARY_PIPELINE_COMPONENTS = os.environ[QANARY_PIPELINE_COMPONENTS]
GITHUB_REPO = ""
QANARY_PIPELINE_URL = config('QANARY_PIPELINE_URL')
QANARY_EXPLANATION_SERVICE_URL = config('QANARY_EXPLANATION_SERVICE_URL')
QANARY_PIPELINE_COMPONENTS = config('QANARY_PIPELINE_COMPONENTS')
GITHUB_REPO = config('GITHUB_REPO')


SPARQL_SELECT_EXPLANATION_QUERY = """
Expand Down
3 changes: 3 additions & 0 deletions service_config/env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
QANARY_PIPELINE_URL=http://localhost:8080
QANARY_EXPLANATION_SERVICE_URL=http://localhost:4000
QANARY_PIPELINE_COMPONENTS=http://demos.swe.htwk-leipzig.de:40111/components
3 changes: 3 additions & 0 deletions service_config/files/env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
QANARY_PIPELINE_URL=http://localhost:8080
QANARY_EXPLANATION_SERVICE_URL=http://localhost:4000
QANARY_PIPELINE_COMPONENTS=http://demos.swe.htwk-leipzig.de:40111/components
Empty file.

0 comments on commit 853bdc6

Please sign in to comment.