InklingSutra commited on
Commit
8eba511
·
1 Parent(s): 05910d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,4 +1,8 @@
1
- !pip install torch
 
 
 
 
2
  import torch
3
  from transformers import AutoModelForImageClassification, AutoFeatureExtractor
4
  import gradio as gr
 
1
+ import subprocess
2
+
3
+ # Install torch using pip
4
+ subprocess.check_call(['pip', 'install', 'torch'])
5
+
6
  import torch
7
  from transformers import AutoModelForImageClassification, AutoFeatureExtractor
8
  import gradio as gr