RobPruzan commited on
Commit
ea36477
1 Parent(s): 7da0423

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import statistics
2
  import string
3
 
@@ -260,7 +261,6 @@ def gradio_fn(text, audio, target, actual_audio):
260
 
261
  if actual_audio is not None:
262
  actual = p(actual_audio)["text"]
263
- print('sdfgs')
264
  speech_score = compute_score(target, actual)
265
 
266
  return "Difficulty Score: " + str(reading_difficulty(actual)), "Transcript: " + str(
@@ -281,12 +281,10 @@ def gradio_fn(text, audio, target, actual_audio):
281
  def plot():
282
  text = state
283
  diversity = calculate_diversity(text)[0]
284
- print(diversity)
285
  df = pd.DataFrame(dict_to_list(diversity))
286
  return heatmap(diversity, df)
287
 
288
 
289
- import csv
290
 
291
  example_data = []
292
  x = 0
 
1
+ import csv
2
  import statistics
3
  import string
4
 
 
261
 
262
  if actual_audio is not None:
263
  actual = p(actual_audio)["text"]
 
264
  speech_score = compute_score(target, actual)
265
 
266
  return "Difficulty Score: " + str(reading_difficulty(actual)), "Transcript: " + str(
 
281
  def plot():
282
  text = state
283
  diversity = calculate_diversity(text)[0]
 
284
  df = pd.DataFrame(dict_to_list(diversity))
285
  return heatmap(diversity, df)
286
 
287
 
 
288
 
289
  example_data = []
290
  x = 0