Update app.py
Browse files
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,
|
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()
|