Update app.py
Browse files
app.py
CHANGED
|
@@ -33,17 +33,10 @@ model.eval()
|
|
| 33 |
|
| 34 |
def create_default_timeseries():
|
| 35 |
"""Create default time series with sudden increase"""
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
ts2 = x2 * 0.01
|
| 41 |
-
ts2[100] += 10.0
|
| 42 |
-
|
| 43 |
-
df = pd.DataFrame({
|
| 44 |
-
"TS1": ts1,
|
| 45 |
-
"TS2": ts2
|
| 46 |
-
})
|
| 47 |
return df
|
| 48 |
|
| 49 |
def process_csv_file(csv_file):
|
|
@@ -351,4 +344,4 @@ with gr.Blocks(title="ChatTS Demo") as demo:
|
|
| 351 |
)
|
| 352 |
|
| 353 |
if __name__ == '__main__':
|
| 354 |
-
demo.launch()
|
|
|
|
| 33 |
|
| 34 |
def create_default_timeseries():
|
| 35 |
"""Create default time series with sudden increase"""
|
| 36 |
+
seq_len = 256
|
| 37 |
+
y = np.zeros(seq_len, dtype=np.float32)
|
| 38 |
+
y[100:] += 1
|
| 39 |
+
df = pd.DataFrame({"default_series": y})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
return df
|
| 41 |
|
| 42 |
def process_csv_file(csv_file):
|
|
|
|
| 344 |
)
|
| 345 |
|
| 346 |
if __name__ == '__main__':
|
| 347 |
+
demo.launch()
|