Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,10 +226,15 @@ def st_transfer_learning():
|
|
226 |
df_forecast.loc[df_forecast["unique_id"] == uid, col] - changes
|
227 |
)
|
228 |
with col2:
|
|
|
|
|
|
|
|
|
229 |
st.plotly_chart(
|
230 |
plot(
|
231 |
df.query("unique_id == @uid"),
|
232 |
-
uid,
|
|
|
233 |
df_forecast.query("unique_id == @uid"),
|
234 |
model_name,
|
235 |
),
|
|
|
226 |
df_forecast.loc[df_forecast["unique_id"] == uid, col] - changes
|
227 |
)
|
228 |
with col2:
|
229 |
+
if uploaded_file is not None:
|
230 |
+
fct_name = value_col
|
231 |
+
else:
|
232 |
+
fct_name=uid
|
233 |
st.plotly_chart(
|
234 |
plot(
|
235 |
df.query("unique_id == @uid"),
|
236 |
+
# uid,
|
237 |
+
fct_name,
|
238 |
df_forecast.query("unique_id == @uid"),
|
239 |
model_name,
|
240 |
),
|