SivilTaram commited on
Commit
3a5d78c
·
verified ·
1 Parent(s): 1c203f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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="Target",
166
  title="Scatter",
167
- tooltip=["Prediction", "Target"],
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[['Target', 'Prediction']], ]
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,