mizoru commited on
Commit
2ac0421
·
1 Parent(s): a6cc630

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,14 +19,14 @@ def predict(Record, Upload):
19
  if Upload: path = Upload
20
  else: path = Record
21
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
22
- fig,ax = plt.subplots(figsize=(12,8))
23
  show_image(spec, ax=ax)
24
  return [{labels[i]: float(probs[i]) for i in range(len(labels))}, fig]
25
 
26
 
27
  title = "Japanese Pitch Accent Pattern Detector"
28
 
29
- description = "This model will predict pitch accent pattern of a word based on the recording of its pronunciation."
30
 
31
  article="<p style='text-align: center'><a href='mizoru.github.io/blog' target='_blank'>Blog</a></p>"
32
 
 
19
  if Upload: path = Upload
20
  else: path = Record
21
  spec,pred,pred_idx,probs = learn.predict(str(path), with_input=True)
22
+ fig,ax = plt.subplots(figsize=(16,10))
23
  show_image(spec, ax=ax)
24
  return [{labels[i]: float(probs[i]) for i in range(len(labels))}, fig]
25
 
26
 
27
  title = "Japanese Pitch Accent Pattern Detector"
28
 
29
+ description = "This model will predict the pitch accent pattern of a word based on the recording of its pronunciation."
30
 
31
  article="<p style='text-align: center'><a href='mizoru.github.io/blog' target='_blank'>Blog</a></p>"
32