yukeshwaradse commited on
Commit
514ea67
·
verified ·
1 Parent(s): 9c5e356

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -80,6 +80,9 @@ for epoch in range(num_epochs):
80
  print(f'Validation Accuracy: {100 * correct / total:.2f}%')
81
 
82
  import wandb
 
 
 
83
  def predict_image(image):
84
  image = Image.fromarray(image).convert("RGB")
85
  image = transform(image)
@@ -112,5 +115,3 @@ interface = gr.Interface(fn=predict_image,
112
  interface.launch()
113
 
114
  # Save model checkpoint to W&B
115
- torch.save(model.state_dict(), 'weather_model.pth')
116
- wandb.save('weather_model.pth')
 
80
  print(f'Validation Accuracy: {100 * correct / total:.2f}%')
81
 
82
  import wandb
83
+ torch.save(model.state_dict(), 'weather_model.pth')
84
+ wandb.save('weather_model.pth')
85
+
86
  def predict_image(image):
87
  image = Image.fromarray(image).convert("RGB")
88
  image = transform(image)
 
115
  interface.launch()
116
 
117
  # Save model checkpoint to W&B