Spaces:
Runtime error
Runtime error
Ansal
commited on
Commit
•
d0c40eb
1
Parent(s):
ab52a15
requirements change
Browse files- app.py +0 -3
- requirements.txt +6 -1
app.py
CHANGED
@@ -1,16 +1,13 @@
|
|
1 |
-
import pandas as pd
|
2 |
import tempfile
|
3 |
from PIL import Image
|
4 |
from pathlib import Path
|
5 |
from shiny import App, Inputs, Outputs, Session, reactive, render, ui
|
6 |
from shiny.types import FileInfo
|
7 |
-
import json
|
8 |
import torch
|
9 |
import numpy as np
|
10 |
import os
|
11 |
from transformers import SamModel
|
12 |
import torchvision.transforms as transforms
|
13 |
-
import matplotlib.pyplot as plt
|
14 |
|
15 |
image_resize_transform = transforms.Compose([
|
16 |
transforms.Resize((1024, 1024)),
|
|
|
|
|
1 |
import tempfile
|
2 |
from PIL import Image
|
3 |
from pathlib import Path
|
4 |
from shiny import App, Inputs, Outputs, Session, reactive, render, ui
|
5 |
from shiny.types import FileInfo
|
|
|
6 |
import torch
|
7 |
import numpy as np
|
8 |
import os
|
9 |
from transformers import SamModel
|
10 |
import torchvision.transforms as transforms
|
|
|
11 |
|
12 |
image_resize_transform = transforms.Compose([
|
13 |
transforms.Resize((1024, 1024)),
|
requirements.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
shiny==0.9.0
|
2 |
shinyswatch==0.6.0
|
3 |
seaborn==0.12.2
|
4 |
-
matplotlib==3.7.1
|
|
|
|
|
|
|
|
|
|
|
|
1 |
shiny==0.9.0
|
2 |
shinyswatch==0.6.0
|
3 |
seaborn==0.12.2
|
4 |
+
matplotlib==3.7.1
|
5 |
+
Pillow
|
6 |
+
torch
|
7 |
+
numpy
|
8 |
+
transformers
|
9 |
+
torchvision
|