In the Uplink Colab tutorial
It said download the Jupyter notebook
the tutorial used an skmodel but im using a generativeai file
so im not sure what file to save it as
this is the code btw
import google.generativeai as genai
from google.generativeai.types import HarmCategory, HarmBlockThreshold
#AI API Key
genai.configure(api_key="XXXX")
#AI Generator Settings
generative_config = {
"temperature": 10,
"top_p": 0.95,
"top_k": 64,
"max_output_tokens": 150,
"response_mime_type": "text/plain",
}
#AI Model Builder
aimodel = genai.GenerativeModel("gemini-1.5-flash")
chat = aimodel.start_chat(
history=[]
)
#this is the part i dont know
import joblib
from google.colab import files
model = joblib.dump(chat,'ai.pkl' )[0]
any help would be appreciated