File size: 600 Bytes
4020c78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import huggingface_hub as hb\n",
    "from tensorflow import keras\n",
    "\n",
    "# Load the model\n",
    "model = keras.models.load_model('../../models/imsoumyaneel-sentiment_analysis_llama2.keras')\n",
    "\n",
    "# Upload the model to Hugging Face\n",
    "hub.push_to_hub_keras(model, repo_id=\"yasirfaizahmed/sentiment-text-classifications\")"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}