Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add matplotib backend to avoid warning
Browse files
app.py
CHANGED
@@ -9,6 +9,9 @@ import numpy as np
|
|
9 |
import pandas as pd
|
10 |
import matplotlib.pyplot as plt
|
11 |
|
|
|
|
|
|
|
12 |
def create_dataset(num_samples, num_informative):
|
13 |
X, y = make_classification(
|
14 |
n_samples=num_samples,
|
|
|
9 |
import pandas as pd
|
10 |
import matplotlib.pyplot as plt
|
11 |
|
12 |
+
import matplotlib
|
13 |
+
matplotlib.use('agg')
|
14 |
+
|
15 |
def create_dataset(num_samples, num_informative):
|
16 |
X, y = make_classification(
|
17 |
n_samples=num_samples,
|