Update app.py
Browse files
app.py
CHANGED
@@ -162,14 +162,14 @@ def infer(inputs, additional_inputs):
|
|
162 |
return [gr.ScatterPlot(
|
163 |
value=df_val,
|
164 |
x="Prediction",
|
165 |
-
y="
|
166 |
title="Scatter",
|
167 |
-
tooltip=["Prediction", "
|
168 |
x_lim=[min(min(predictions), min(df_val[y_column]))-0.25, max(max(predictions), max(df_val[y_column]))+0.25],
|
169 |
y_lim=[min(min(predictions), min(df_val[y_column]))-0.25, max(max(predictions), max(df_val[y_column]))+0.25]
|
170 |
),
|
171 |
gr.Image(Image.open('tmp.png')),
|
172 |
-
df_val[['
|
173 |
|
174 |
def upload_csv(file):
|
175 |
df = pd.read_csv(file.name,
|
|
|
162 |
return [gr.ScatterPlot(
|
163 |
value=df_val,
|
164 |
x="Prediction",
|
165 |
+
y="True Loss",
|
166 |
title="Scatter",
|
167 |
+
tooltip=["Prediction", "True Loss"],
|
168 |
x_lim=[min(min(predictions), min(df_val[y_column]))-0.25, max(max(predictions), max(df_val[y_column]))+0.25],
|
169 |
y_lim=[min(min(predictions), min(df_val[y_column]))-0.25, max(max(predictions), max(df_val[y_column]))+0.25]
|
170 |
),
|
171 |
gr.Image(Image.open('tmp.png')),
|
172 |
+
df_val[['True Loss', 'Prediction']], ]
|
173 |
|
174 |
def upload_csv(file):
|
175 |
df = pd.read_csv(file.name,
|