changxin commited on
Commit
68322e2
โ€ข
1 Parent(s): 28e1c18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import hashlib
3
  import tempfile
4
  import requests
5
  import pandas as pd
6
- from datatable import (dt, f,fread, by, ifelse, update, sort,count, min, max, mean, sum, rowsum,rowmean,rowcount,shift,cumsum,rbind,cbind,union)
7
  from TTS.utils.manage import ModelManager
8
  from TTS.utils.synthesizer import Synthesizer
9
  def fx(x:str):
@@ -61,8 +61,8 @@ def dd_ocr(tk,sl,dt):
61
  return response.json()
62
 
63
  def fx_dt(dc):
64
- DT=fread(dc)
65
- D_table=DT[:,{'้”€้‡ๅ’Œ':cumsum(f.้”€้‡)}, by('ๆœˆไปฝ')]
66
  return D_table.to_pandas()
67
 
68
  demo=gr.Blocks()
 
3
  import tempfile
4
  import requests
5
  import pandas as pd
6
+ from datatable import (dt, f,fread, by, ifelse, update, sort,count, min, max, mean, sum, rowsum,rowmean,rowcount,shift,rbind,cbind,union)
7
  from TTS.utils.manage import ModelManager
8
  from TTS.utils.synthesizer import Synthesizer
9
  def fx(x:str):
 
61
  return response.json()
62
 
63
  def fx_dt(dc):
64
+ DT=fread(dc,columns={'ๆœˆไปฝ':dt.int64,'้”€้‡':dt.int64,'ๅ•ไปท':dt.float64})
65
+ D_table=DT[:,{'้”€้‡ๅ’Œ':cumsum(f.้”€้‡),'้”€ๅ”ฎ้ข':sum(f.้”€้‡*f.ๅ•ไปท)}, by('ๅฐ็ป„')]
66
  return D_table.to_pandas()
67
 
68
  demo=gr.Blocks()