So I accidently installed a package without checking the size of the package, and it crashed my repl

I wanted to add TensorFlow to my repl, after setting everything up to import the package, I click run and it begins to download everything. After a few minutes, the repl says it couldn’t download TensorFlow, but I saw it downloaded a bunch of other things for tensorflow, and the repl’s storage was full. I couldn’t find the list of what was specifically installed from tensorflow, so I couldn’t uninstall each specific thing. Then it froze and I tried refreshing but it kept freezing. I’ve been working on this repl for the past half of year and worked hard on this, is there anyway to fix the repl by converting to an older version?
I connected my github a few days ago, so I’m able to recreate the project using an older version, however this doesn’t port over all of the database keys and secret tokens. I can’t even run the repl due to an error of the code requiring a package that’s not installed. I already tried reverting to the older version from github, but it just froze and did nothing.
If there’s anything I haven’t tried yet, please let me know. There was close to 200 keys I’ve saved in the replit database and I really don’t want to have to try recreating everything again.

I forgot to add, TensorFlow is around 1.2gb, while replit only provides 1gb of storage in a repl.
I know this was my mistake for not checking, but if there’s anything I can do to fix this, please let me know

Open the shell and do rm -rf venv&&python3 -m venv venv/ (that’ll remove the packages)

1 Like

You’ll be able to get more storage eventually, I don’t think I can say anything more

2 Likes

Hey @Runcorn! Welcome to the community!

You can use TensorFlow’s CDN script and import it into your HTML script, since this won’t take storage in your Repl.

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"> </script>

However, you probably may have to use the HTML, CSS, JS Repl Template, though I am not too sure on this matter.

1 Like

That will only run in the browser, it won’t work in python (backend)

2 Likes

You could copy the replit db data over, I might try to create something that automates that

3 Likes

Yea, that’s probably a client-side script. So it won’t work here.

You could use something like Github and store your files there, then import it via the URL to the raw file

1 Like

I would try this, but the whole repl is just frozen no matter how many times I refresh, close, and reopen.

1 Like

What is the repl URL? Maybe @PikachuB2005 can do crosis things to fix it if you invite them to it

1 Like

I finally got the repl to work, and removed the packages. Everything seems good now, thanks!
As for using TensorFlow, is there anyway to use it in the python template?

1 Like

There probably is, let me check

2 Likes

If you’re fine with slow boot times, there is a way.

1 Like

Never mind, that method didn’t work. Another might, though.

1 Like

Its alright if you cant find a way, but thank you for helping me

2 Likes

It works. I’ll publish a template with tensorflow soon.

4 Likes

What’s a short snippet for making sure tensorflow works? I need to make sure the library is actually usable

I actually am just learning about tensorflow- so I don’t exactly know. I sorta learn along the way, so- yea
Thanks for all of your help tho

Okay, I’ll figure it out

Please don’t offer my help to others. I have nothing set up at the moment to easily do stuff like this (yet).

3 Likes