Skip to content

Commit

Permalink
fix for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastBen authored May 12, 2024
1 parent a4026a9 commit d4990bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PPS-Dreambooth-v1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
"\n",
"# Set to true only if you want to install the dependencies again.\n",
"\n",
"\n",
"#--------------------\n",
"with open('/dev/null', 'w') as devnull:import requests, os, time, importlib;open('/notebooks/mainpaperspacev1.py', 'wb').write(requests.get('https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Scripts/mainpaperspacev1.py').content); os.chdir('/notebooks');time.sleep(3);import mainpaperspacev1;importlib.reload(mainpaperspacev1);from mainpaperspacev1 import *;Deps(force_reinstall)"
"with open('/dev/null', 'w') as devnull:import requests, os, importlib;sc=\"mainpaperspacev1.py\" if os.path.exists('/usr/local/lib/python3.9') else \"mainpaperspacev1_311.py\";open('/notebooks/mainpaperspacev1.py', 'wb').write(requests.get('https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Scripts/'+sc).content);os.chdir('/notebooks');import mainpaperspacev1;importlib.reload(mainpaperspacev1);from mainpaperspacev1 import *;Deps(force_reinstall)"
]
},
{
Expand Down

0 comments on commit d4990bc

Please sign in to comment.