bishmoy commited on
Commit
93de508
·
verified ·
1 Parent(s): d70b96c

Show correct labels

Browse files
Files changed (1) hide show
  1. utils.py +3 -2
utils.py CHANGED
@@ -47,6 +47,7 @@ scheduler = CommitScheduler(
47
  )
48
 
49
  df = pd.read_csv(os.path.join(LOCAL_DIR,'data.csv'))
 
50
  filenames = list(os.path.join(LOCAL_DIR, 'songs') + '/' + df.filename + '.mp3')
51
 
52
  indices = list(df.index)
@@ -181,7 +182,7 @@ def fake_last_response(
181
  vote_last_response(
182
  state, "fake", request
183
  )
184
- return (disable_btn,) * 3 + (gr.Markdown(f"### Fake \nModel : {state.row.algorithm}", visible=True),)
185
 
186
  def real_last_response(
187
  state, request: gr.Request
@@ -189,5 +190,5 @@ def real_last_response(
189
  vote_last_response(
190
  state, "real", request
191
  )
192
- return (disable_btn,) * 3 + (gr.Markdown(f"### Real", visible=True),)
193
 
 
47
  )
48
 
49
  df = pd.read_csv(os.path.join(LOCAL_DIR,'data.csv'))
50
+
51
  filenames = list(os.path.join(LOCAL_DIR, 'songs') + '/' + df.filename + '.mp3')
52
 
53
  indices = list(df.index)
 
182
  vote_last_response(
183
  state, "fake", request
184
  )
185
+ return (disable_btn,) * 3 + (gr.Markdown(f"### {state.row.label} \nModel : {state.row.algorithm}", visible=True),)
186
 
187
  def real_last_response(
188
  state, request: gr.Request
 
190
  vote_last_response(
191
  state, "real", request
192
  )
193
+ return (disable_btn,) * 3 + (gr.Markdown(f"### {state.row.label}", visible=True),)
194