Spaces:
Runtime error
Runtime error
Add legend and change color
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def predict(alpha):
|
|
| 35 |
label="Ridge regressor")
|
| 36 |
plt.ylabel("Y")
|
| 37 |
plt.xlabel("X")
|
| 38 |
-
plt.legend(loc="upper
|
| 39 |
return plt
|
| 40 |
|
| 41 |
inputs = gr.Slider(0, 20, label='alpha', default=1)
|
|
|
|
| 35 |
label="Ridge regressor")
|
| 36 |
plt.ylabel("Y")
|
| 37 |
plt.xlabel("X")
|
| 38 |
+
plt.legend(loc="upper left")
|
| 39 |
return plt
|
| 40 |
|
| 41 |
inputs = gr.Slider(0, 20, label='alpha', default=1)
|