Spaces:
Build error
Build error
updating app
Browse files
app.py
CHANGED
|
@@ -46,13 +46,18 @@ collector = FeedbackCollector(
|
|
| 46 |
# component_name="default",
|
| 47 |
email=st.secrets["TRUBRICS_EMAIL"],
|
| 48 |
password=st.secrets["TRUBRICS_PASSWORD"],
|
| 49 |
-
project="
|
| 50 |
)
|
| 51 |
|
| 52 |
|
| 53 |
def main():
|
| 54 |
-
image = Image.open(os.path.join(os.path.dirname(__file__), 'accord_logo.png'))
|
| 55 |
-
st.sidebar.image(image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
# st.sidebar.title("ACCORD-NLP")
|
| 58 |
st.sidebar.header("Information Extractor")
|
|
@@ -64,6 +69,7 @@ def main():
|
|
| 64 |
"[models](https://huggingface.co/ACCORD-NLP)"
|
| 65 |
)
|
| 66 |
|
|
|
|
| 67 |
if 'text' not in st.session_state:
|
| 68 |
st.session_state['text'] = ''
|
| 69 |
if 'graph' not in st.session_state:
|
|
@@ -115,7 +121,7 @@ def main():
|
|
| 115 |
collector.st_feedback(
|
| 116 |
component="default",
|
| 117 |
feedback_type="thumbs",
|
| 118 |
-
model="
|
| 119 |
align="flex-start",
|
| 120 |
metadata={
|
| 121 |
"sentence": txt
|
|
|
|
| 46 |
# component_name="default",
|
| 47 |
email=st.secrets["TRUBRICS_EMAIL"],
|
| 48 |
password=st.secrets["TRUBRICS_PASSWORD"],
|
| 49 |
+
project="accord-nlp-ie"
|
| 50 |
)
|
| 51 |
|
| 52 |
|
| 53 |
def main():
|
| 54 |
+
# image = Image.open(os.path.join(os.path.dirname(__file__), 'accord_logo.png'))
|
| 55 |
+
# st.sidebar.image(image)
|
| 56 |
+
|
| 57 |
+
# st.sidebar.markdown("[](https://accordproject.eu/)")
|
| 58 |
+
st.sidebar.markdown(
|
| 59 |
+
"[, 'accord_logo.png'))](https://accordproject.eu/)")
|
| 60 |
+
|
| 61 |
|
| 62 |
# st.sidebar.title("ACCORD-NLP")
|
| 63 |
st.sidebar.header("Information Extractor")
|
|
|
|
| 69 |
"[models](https://huggingface.co/ACCORD-NLP)"
|
| 70 |
)
|
| 71 |
|
| 72 |
+
|
| 73 |
if 'text' not in st.session_state:
|
| 74 |
st.session_state['text'] = ''
|
| 75 |
if 'graph' not in st.session_state:
|
|
|
|
| 121 |
collector.st_feedback(
|
| 122 |
component="default",
|
| 123 |
feedback_type="thumbs",
|
| 124 |
+
model="v1-test",
|
| 125 |
align="flex-start",
|
| 126 |
metadata={
|
| 127 |
"sentence": txt
|