Spaces:
Running
Running
Fix: Issue with cache
Browse files
app.py
CHANGED
@@ -132,9 +132,9 @@ intro_html = """
|
|
132 |
<h2>The ACT-UP Oral History Project</h2>
|
133 |
|
134 |
<div class="content-box">
|
135 |
-
<p>You will be annotating short audio clips extracted from the ACT UP (AIDS Coalition to Unleash Power) Oral History Project developed by Sarah Schulman and Jim Hubbard .
|
136 |
-
|
137 |
-
|
138 |
</div>
|
139 |
|
140 |
<h2>What will you be annotating?</h2>
|
@@ -210,14 +210,8 @@ side_bar_html = """
|
|
210 |
</table>
|
211 |
</div>
|
212 |
"""
|
213 |
-
|
214 |
-
persistent_storage = Path('/data')
|
215 |
-
# List of all audio files to annotate
|
216 |
global file_list
|
217 |
-
|
218 |
-
|
219 |
-
# Initialize an empty DataFrame to store annotations
|
220 |
-
annotations = pd.DataFrame(columns=['sample_id', 'sentence', 'emotion', 'confidence', 'comments', 'n_clicks'])
|
221 |
|
222 |
password_files = os.getenv("password_files")
|
223 |
|
@@ -263,7 +257,7 @@ def get_storage(password):
|
|
263 |
def load_first_example(participant_id, ann_completed, current_index):
|
264 |
""" Loads and first example and updates index"""
|
265 |
global annotations
|
266 |
-
|
267 |
path_ann = f'{persistent_storage}/{participant_id}_annotations.csv'
|
268 |
print(path_ann)
|
269 |
if os.path.exists(path_ann):
|
@@ -379,6 +373,12 @@ def count_clicks(n_clicks):
|
|
379 |
|
380 |
|
381 |
with (gr.Blocks(theme=gr.themes.Soft(), css = css) as demo):
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
# Instructions for emotion annotation
|
383 |
with gr.Sidebar():
|
384 |
participant_id = gr.Textbox(label='What is your participant ID?', interactive = True)
|
|
|
132 |
<h2>The ACT-UP Oral History Project</h2>
|
133 |
|
134 |
<div class="content-box">
|
135 |
+
<p>You will be annotating short audio clips extracted from the ACT UP (AIDS Coalition to Unleash Power) Oral History Project developed by Sarah Schulman and Jim Hubbard .
|
136 |
+
This archive features interviews with individuals who were part of ACT UP during the late 1980s and early 1990s, amidst the AIDS epidemic.
|
137 |
+
In each video, the subjects talk about their life before the epidemic, how they were affected by AIDS and their work in ACT UP.</p>
|
138 |
</div>
|
139 |
|
140 |
<h2>What will you be annotating?</h2>
|
|
|
210 |
</table>
|
211 |
</div>
|
212 |
"""
|
|
|
|
|
|
|
213 |
global file_list
|
214 |
+
persistent_storage = Path('/data')
|
|
|
|
|
|
|
215 |
|
216 |
password_files = os.getenv("password_files")
|
217 |
|
|
|
257 |
def load_first_example(participant_id, ann_completed, current_index):
|
258 |
""" Loads and first example and updates index"""
|
259 |
global annotations
|
260 |
+
|
261 |
path_ann = f'{persistent_storage}/{participant_id}_annotations.csv'
|
262 |
print(path_ann)
|
263 |
if os.path.exists(path_ann):
|
|
|
373 |
|
374 |
|
375 |
with (gr.Blocks(theme=gr.themes.Soft(), css = css) as demo):
|
376 |
+
# List of all audio files to annotate
|
377 |
+
|
378 |
+
|
379 |
+
# Initialize an empty DataFrame to store annotations
|
380 |
+
annotations = pd.DataFrame(columns=['sample_id', 'sentence', 'emotion', 'confidence', 'comments', 'n_clicks'])
|
381 |
+
|
382 |
# Instructions for emotion annotation
|
383 |
with gr.Sidebar():
|
384 |
participant_id = gr.Textbox(label='What is your participant ID?', interactive = True)
|