Deepanshu3012 commited on
Commit
108b492
·
1 Parent(s): 12c0ac0

Fix torch version to 2.6.0 for Python 3.13 compatibility

Browse files
Files changed (2) hide show
  1. app.py +0 -8
  2. requirements.txt +2 -3
app.py CHANGED
@@ -2,15 +2,7 @@
2
  Code Review NLP Assistant — Gradio App
3
  Run with: python app.py
4
  """
5
- import subprocess
6
- import sys
7
 
8
- subprocess.run([
9
- sys.executable, "-m", "pip", "install",
10
- "torch==2.2.2",
11
- "--index-url", "https://download.pytorch.org/whl/cpu",
12
- "--quiet"
13
- ], check=False)
14
 
15
  import sys
16
  import os
 
2
  Code Review NLP Assistant — Gradio App
3
  Run with: python app.py
4
  """
 
 
5
 
 
 
 
 
 
 
6
 
7
  import sys
8
  import os
requirements.txt CHANGED
@@ -1,6 +1,5 @@
1
  transformers==4.40.0
2
- torch==2.2.2+cpu
3
- torchvision==0.17.2+cpu
4
  tokenizers==0.19.1
5
  gradio==4.44.1
6
  radon==6.0.1
@@ -10,4 +9,4 @@ plotly==5.22.0
10
  sentencepiece==0.2.0
11
  accelerate==0.30.0
12
  huggingface_hub==0.23.4
13
- jinja2==3.1.3
 
1
  transformers==4.40.0
2
+ torch==2.6.0
 
3
  tokenizers==0.19.1
4
  gradio==4.44.1
5
  radon==6.0.1
 
9
  sentencepiece==0.2.0
10
  accelerate==0.30.0
11
  huggingface_hub==0.23.4
12
+ jinja2==3.1.3