yasirfaizahmed commited on
Commit
8d08fd9
1 Parent(s): c348565

upload mechanism

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