flatindo commited on
Commit
191b14a
·
1 Parent(s): d3bbe4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,10 +3,10 @@ import torch
3
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
4
  import subprocess
5
 
6
- upgrade_command = "python -m pip install --upgrade pip"
7
 
8
  # Run the command
9
- subprocess.run(upgrade_command, shell=True)
10
 
11
  # Load the pre-trained GPT-2 model and tokenizer
12
  model_name = "gpt2" # You can change this to another model if needed
 
3
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
4
  import subprocess
5
 
6
+ #upgrade_command = "python -m pip install --upgrade pip"
7
 
8
  # Run the command
9
+ #subprocess.run(upgrade_command, shell=True)
10
 
11
  # Load the pre-trained GPT-2 model and tokenizer
12
  model_name = "gpt2" # You can change this to another model if needed