Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,16 +81,17 @@ def inference(audio, prompt, model, temperature, latest):
|
|
81 |
#infered = list(map(lambda x: x.split(','), infers))
|
82 |
|
83 |
infers = pd.Series(inferred)
|
|
|
84 |
|
85 |
-
infers.drop_duplicates(keep='first', inplace=True)
|
86 |
print("Infers DataType ", type(infers), "Infers after drop: ", infers, "Infers at 0: ", infers[0])
|
87 |
res = []
|
88 |
|
89 |
-
op1 =
|
90 |
-
op2 = infers[1]
|
91 |
-
op3 = infers[2]
|
92 |
-
op4 = infers[3]
|
93 |
-
op5 = infers[4]
|
94 |
|
95 |
|
96 |
print("INFERS TYPE: ", type(infers), "INFERS ", infers)
|
|
|
81 |
#infered = list(map(lambda x: x.split(','), infers))
|
82 |
|
83 |
infers = pd.Series(inferred)
|
84 |
+
infersNew = infers.str.split(pat=None, n=-1, expand=True)
|
85 |
|
86 |
+
#infers.drop_duplicates(keep='first', inplace=True)
|
87 |
print("Infers DataType ", type(infers), "Infers after drop: ", infers, "Infers at 0: ", infers[0])
|
88 |
res = []
|
89 |
|
90 |
+
op1 = infersNew[0][0]
|
91 |
+
op2 = infers[0][1]
|
92 |
+
op3 = infers[0][2]
|
93 |
+
op4 = infers[0][3]
|
94 |
+
op5 = infers[0][4]
|
95 |
|
96 |
|
97 |
print("INFERS TYPE: ", type(infers), "INFERS ", infers)
|