blumenstiel commited on
Commit
dc1e233
Β·
1 Parent(s): 1e019a9

Fix import error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,6 @@ import gradio as gr
7
  from einops import rearrange
8
  from functools import partial
9
  from huggingface_hub import hf_hub_download
10
- from prithvi_mae import PrithviMAE
11
- from inference import process_channel_group, _convert_np_uint8, load_example, run_model
12
 
13
  # pull files from hub
14
  token = os.environ.get("HF_TOKEN", None)
@@ -23,6 +21,8 @@ model_inference = hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-EO-2.0-30
23
  os.system(f'cp {model_def} .')
24
  os.system(f'cp {model_inference} .')
25
 
 
 
26
 
27
  def extract_rgb_imgs(input_img, rec_img, mask_img, channels, mean, std):
28
  """ Wrapper function to save Geotiff images (original, reconstructed, masked) per timestamp.
 
7
  from einops import rearrange
8
  from functools import partial
9
  from huggingface_hub import hf_hub_download
 
 
10
 
11
  # pull files from hub
12
  token = os.environ.get("HF_TOKEN", None)
 
21
  os.system(f'cp {model_def} .')
22
  os.system(f'cp {model_inference} .')
23
 
24
+ from prithvi_mae import PrithviMAE
25
+ from inference import process_channel_group, _convert_np_uint8, load_example, run_model
26
 
27
  def extract_rgb_imgs(input_img, rec_img, mask_img, channels, mean, std):
28
  """ Wrapper function to save Geotiff images (original, reconstructed, masked) per timestamp.