Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added lstm model #98

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

added lstm model #98

wants to merge 3 commits into from

Conversation

ymnglli
Copy link
Contributor

@ymnglli ymnglli commented Apr 14, 2023

hi, i don't know if this works because i couldn't install tensorflow on my local computer, but it works on colab. would appreciate it if you can check!!!

the model is stored in the essentially google drive, and the notebook "model_inference.ipynb" lets you try generating summaries on texts you input.

@ymnglli ymnglli requested review from a team, hungnguyen3, bonvee-99, armintalaie, Michaeltaoma, Hgjnnf and ryanmckim and removed request for a team April 14, 2023 08:37
from tensorflow import keras
from sentence_transformers import SentenceTransformer

model = tf.keras.models.load_model('/lstm_bi25')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change the file path to "./lstm_bi25"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sorry!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the notebooks are in the Essentially google drive 😄 as well as the models. I tried installing tensorflow a few times but it wouldn't work and i gave up. Don't worry, I made sure to include it in the requirements.txt so it should work for you guys!

@Michaeltaoma
Copy link
Contributor

hi, i don't know if this works because i couldn't install tensorflow on my local computer, but it works on colab. would appreciate it if you can check!!!

the model is stored in the essentially google drive, and the notebook "model_inference.ipynb" lets you try generating summaries on texts you input.

The change looks nice! Can u share the colab link for each of these notebooks you pushed so that we can take a look and run the code directly? And what's the reason for not being able to install TensorFlow?

"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/ubclaunchpad/Essentially/blob/ml/ML_Experiments.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an empty notebook, what's the reason for having this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮 😮 I will delete it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants