Spaces:
Runtime error
Runtime error
Dhritiman Sagar
commited on
Commit
•
1872f6e
1
Parent(s):
fc5989d
Fix imports
Browse files- app.py +3 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import datasets
|
2 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
3 |
import gradio as gr
|
|
|
|
|
|
|
4 |
|
5 |
dataset = datasets.load_dataset("beans")
|
6 |
extractor = AutoFeatureExtractor.from_pretrained("saved_model_files")
|
|
|
1 |
import datasets
|
2 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
3 |
import gradio as gr
|
4 |
+
import torch
|
5 |
+
import transformers
|
6 |
+
|
7 |
|
8 |
dataset = datasets.load_dataset("beans")
|
9 |
extractor = AutoFeatureExtractor.from_pretrained("saved_model_files")
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
torch
|
|
|
2 |
torchvision
|
3 |
torchaudio
|
4 |
datasets
|
|
|
1 |
torch
|
2 |
+
numpy
|
3 |
torchvision
|
4 |
torchaudio
|
5 |
datasets
|