Update app.py
Browse files
app.py
CHANGED
|
@@ -217,20 +217,6 @@ def full_forecast_pipeline(file_obj, forecast_horizon, finetune_steps, freq, sta
|
|
| 217 |
logger.exception("An unexpected error occurred:")
|
| 218 |
return f"Error: An unexpected error occurred: {e}", None, None, None
|
| 219 |
|
| 220 |
-
def get_column_names(file_obj):
|
| 221 |
-
"""
|
| 222 |
-
Extracts column names from the uploaded file.
|
| 223 |
-
"""
|
| 224 |
-
try:
|
| 225 |
-
df = load_data(file_obj)
|
| 226 |
-
columns = df.columns.tolist()
|
| 227 |
-
print(f"Column names: {columns}")
|
| 228 |
-
return columns
|
| 229 |
-
except Exception as e:
|
| 230 |
-
logger.error(f"Error in get_column_names: {e}", exc_info=True)
|
| 231 |
-
print(f"Error in get_column_names: {e}")
|
| 232 |
-
return []
|
| 233 |
-
|
| 234 |
def create_interface():
|
| 235 |
with gr.Blocks() as iface:
|
| 236 |
gr.Markdown("""
|
|
|
|
| 217 |
logger.exception("An unexpected error occurred:")
|
| 218 |
return f"Error: An unexpected error occurred: {e}", None, None, None
|
| 219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
def create_interface():
|
| 221 |
with gr.Blocks() as iface:
|
| 222 |
gr.Markdown("""
|