sairamv1 commited on
Commit
7b8f9eb
·
verified ·
1 Parent(s): 721aa2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import os
 
 
 
2
  import base64
3
  import logging
4
  import numpy as np
@@ -6,9 +9,6 @@ import cv2
6
  import requests
7
  from typing import List, Dict, Any
8
 
9
- os.environ["KERAS_BACKEND"] = "jax"
10
- os.environ["JAX_PLATFORM_NAME"] = "cpu" # Fast startup, no GPU needed
11
-
12
  import keras
13
  from fastapi import FastAPI, File, UploadFile, HTTPException
14
  from huggingface_hub import hf_hub_download
 
1
  import os
2
+ os.environ["KERAS_BACKEND"] = "jax"
3
+ os.environ["JAX_PLATFORM_NAME"] = "cpu" # Fast startup, no GPU needed
4
+
5
  import base64
6
  import logging
7
  import numpy as np
 
9
  import requests
10
  from typing import List, Dict, Any
11
 
 
 
 
12
  import keras
13
  from fastapi import FastAPI, File, UploadFile, HTTPException
14
  from huggingface_hub import hf_hub_download