ansal commited on
Commit
489fe0e
1 Parent(s): cfb9a50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -8,8 +8,6 @@ import torchvision.transforms as transforms
8
  from shiny import App, Inputs, Outputs, Session, reactive, render, ui
9
  from shiny.types import FileInfo
10
 
11
- os.environ["TRANSFORMERS_CACHE"] = "/code/"
12
-
13
  from transformers import SamModel
14
 
15
  image_resize_transform = transforms.Compose([
@@ -84,4 +82,4 @@ def server(input: Inputs, output: Outputs, session: Session):
84
  _, img_path = result
85
  return {"src": img_path, "width": "300px"}
86
 
87
- app = App(app_ui, server)
 
8
  from shiny import App, Inputs, Outputs, Session, reactive, render, ui
9
  from shiny.types import FileInfo
10
 
 
 
11
  from transformers import SamModel
12
 
13
  image_resize_transform = transforms.Compose([
 
82
  _, img_path = result
83
  return {"src": img_path, "width": "300px"}
84
 
85
+ app = App(app_ui, server)