naseem9006 commited on
Commit
8b09871
·
verified ·
1 Parent(s): dc629a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,6 +1,12 @@
1
  # import torch
 
 
 
2
  import os
3
- os.system("pip install torch")
 
 
 
4
  import gradio as gr
5
 
6
  # Use a pipeline as a high-level helper
 
1
  # import torch
2
+ # import os
3
+ # os.system("pip install torch")
4
+
5
  import os
6
+
7
+ # Install dependencies dynamically (Not recommended for production)
8
+ os.system("pip install torch transformers")
9
+
10
  import gradio as gr
11
 
12
  # Use a pipeline as a high-level helper