Spaces:
Runtime error
Runtime error
dev mode from env
Browse files
app.py
CHANGED
@@ -73,7 +73,10 @@ if __name__ == "__main__":
|
|
73 |
if api_key is not None:
|
74 |
gmaps = googlemaps.Client(key=api_key)
|
75 |
|
76 |
-
cg = ClimateGAN(
|
|
|
|
|
|
|
77 |
cg._setup_stable_diffusion()
|
78 |
|
79 |
with gr.Blocks() as blocks:
|
|
|
73 |
if api_key is not None:
|
74 |
gmaps = googlemaps.Client(key=api_key)
|
75 |
|
76 |
+
cg = ClimateGAN(
|
77 |
+
model_path="config/model/masker",
|
78 |
+
dev_mode=os.environ.get("CG_DEV_MODE", "false").lower() == "true",
|
79 |
+
)
|
80 |
cg._setup_stable_diffusion()
|
81 |
|
82 |
with gr.Blocks() as blocks:
|