fpessanha commited on
Commit
61ec2c0
·
1 Parent(s): 629cddd

Fix: Issue with cache

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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 . This archive features interviews with individuals who were part of ACT UP during the late 1980s and early 1990s, amidst the AIDS epidemic. In each video, the subjects talk about their life before the epidemic, how they were affected by AIDS and their work in ACT UP. The project comprises 187 interviews with members of the AIDS Coalition to Unleash Power (ACT UP) during the AIDS epidemic in New York in the late 1980s and early 1990s.
136
- </p><p>Schulman sought to document the group’s public activism and capture the atmosphere among its members at the height of the crisis: </p><h4>"I wanted to show how crazy and desperate everyone was at that point, organizing political funerals and riding around in vans with the bodies of their dead friends. I wanted to convey what the suffering was like at that point."</h4><p>
137
- Sullivan describes the archive as a space that embodies challenging emotions, such as the pervasive fear of death, grief, and what Jim Hubbard refers to as the activists' "righteous anger." </p>
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
- global total_annotations
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)