pavanmutha commited on
Commit
201e59d
·
verified ·
1 Parent(s): bf22071

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -56,7 +56,7 @@ agent = CodeAgent(
56
 
57
 
58
  # Gradio Gallery and visualization output
59
- visual_output = gr.Gallery(label="Generated Visualizations", columns=3, height=400)
60
 
61
  # Fix in the `run_agent` function to handle agent results correctly
62
  def run_agent(_):
@@ -100,17 +100,9 @@ def run_agent(_):
100
  return insights, image_paths
101
 
102
 
103
-
104
-
105
-
106
-
107
-
108
  def train_model(_):
109
  wandb.login(key=os.environ.get("WANDB_API_KEY"))
110
- #wandb_run = wandb.init(project="huggingface-data-analysis", name="Optuna_Run", reinit=True)
111
- # At the start of your script
112
  run_counter = 1
113
-
114
  # Then when initializing
115
  wandb_run = wandb.init(project="huggingface-data-analysis", name=f"Optuna_Run_{run_counter}", reinit=True)
116
  run_counter += 1
 
56
 
57
 
58
  # Gradio Gallery and visualization output
59
+ visual_output = gr.Gallery(label="Generated Visualizations", columns=3, height=600, object_fit="contain")
60
 
61
  # Fix in the `run_agent` function to handle agent results correctly
62
  def run_agent(_):
 
100
  return insights, image_paths
101
 
102
 
 
 
 
 
 
103
  def train_model(_):
104
  wandb.login(key=os.environ.get("WANDB_API_KEY"))
 
 
105
  run_counter = 1
 
106
  # Then when initializing
107
  wandb_run = wandb.init(project="huggingface-data-analysis", name=f"Optuna_Run_{run_counter}", reinit=True)
108
  run_counter += 1