Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ output_repo_path = 'datasets/emvecchi/therapy_annotation/pilot'
|
|
| 42 |
|
| 43 |
|
| 44 |
st.set_page_config(page_title="Therapy Session Annotation", layout="wide")
|
| 45 |
-
|
| 46 |
|
| 47 |
to_annotate_file_name = 'to_annotate.csv' # CSV file to annotate
|
| 48 |
COLS_TO_SAVE = ['dialogue_id','dialogue_name','generatedPatient']
|
|
@@ -98,8 +98,8 @@ consent_text = '''
|
|
| 98 |
You will be asked to take part in a research study. Before you decide to take part in this study, it is important that you understand why the study is being done and what it involves. Please read the following information carefully.
|
| 99 |
________________________________________________________________________________________
|
| 100 |
|
| 101 |
-
Project title:
|
| 102 |
-
Researchers:
|
| 103 |
Institute: Institute for Machine Speech Processing (IMS)\\
|
| 104 |
University: University of Stuttgart\\
|
| 105 |
Contact: eva-maria.vecchi@ims.uni-stuttgart.de
|
|
@@ -301,7 +301,12 @@ def display_image(image_path):
|
|
| 301 |
with hf_fs.open(image_path) as f:
|
| 302 |
img = Image.open(f)
|
| 303 |
st.image(img, caption='8 most contributing properties', use_column_width=True)
|
| 304 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 305 |
#################################### Streamlit App ####################################
|
| 306 |
|
| 307 |
# Function to navigate rows
|
|
@@ -494,7 +499,7 @@ def prep_and_save_data(index, skip_sample):
|
|
| 494 |
|
| 495 |
# st.set_page_config(layout='wide')
|
| 496 |
# Title of the app
|
| 497 |
-
st.title("
|
| 498 |
|
| 499 |
|
| 500 |
st.markdown(
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
st.set_page_config(page_title="Therapy Session Annotation", layout="wide")
|
| 45 |
+
|
| 46 |
|
| 47 |
to_annotate_file_name = 'to_annotate.csv' # CSV file to annotate
|
| 48 |
COLS_TO_SAVE = ['dialogue_id','dialogue_name','generatedPatient']
|
|
|
|
| 98 |
You will be asked to take part in a research study. Before you decide to take part in this study, it is important that you understand why the study is being done and what it involves. Please read the following information carefully.
|
| 99 |
________________________________________________________________________________________
|
| 100 |
|
| 101 |
+
Project title: [...]\\
|
| 102 |
+
Researchers: [...]\\
|
| 103 |
Institute: Institute for Machine Speech Processing (IMS)\\
|
| 104 |
University: University of Stuttgart\\
|
| 105 |
Contact: eva-maria.vecchi@ims.uni-stuttgart.de
|
|
|
|
| 301 |
with hf_fs.open(image_path) as f:
|
| 302 |
img = Image.open(f)
|
| 303 |
st.image(img, caption='8 most contributing properties', use_column_width=True)
|
| 304 |
+
|
| 305 |
+
def load_text(file):
|
| 306 |
+
with open(file, "r") as file:
|
| 307 |
+
consent_text = file.read()
|
| 308 |
+
return consent_text
|
| 309 |
+
|
| 310 |
#################################### Streamlit App ####################################
|
| 311 |
|
| 312 |
# Function to navigate rows
|
|
|
|
| 499 |
|
| 500 |
# st.set_page_config(layout='wide')
|
| 501 |
# Title of the app
|
| 502 |
+
st.title("Therapy Session Annotation")
|
| 503 |
|
| 504 |
|
| 505 |
st.markdown(
|