Zul001 commited on
Commit
501fdf4
·
verified ·
1 Parent(s): ec5e2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -24
app.py CHANGED
@@ -1,32 +1,17 @@
1
- # #importing libraries
2
- # import keras_nlp
3
- # import os
4
- # import tensorflow as tf
5
- # import kagglehub
6
-
7
-
8
- # #Loading the model from kaggle
9
- # #For safety, add this to kaggle or google secrets
10
- # os.environ['KAGGLE_USERNAME'] = 'ayomidezulkazeem' #username
11
- # os.environ['KAGGLE_KEY'] = '245a313b018fe8355198d9c48413b991' #kaggle_key
12
-
13
-
14
- # # Download latest version
15
- # path = kagglehub.model_download("ayomidezulkazeem/hydrosense/keras/gemma-hydrosense-instruct-2b")
16
-
17
- # print("Path to model files:", path)
18
- # print("Model path:", path)
19
 
20
 
21
- model_path = path
22
- gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset(model_path)
23
 
24
 
25
 
26
- import gradio as gr
27
- import time
28
- from huggingface_hub import InferenceClient
29
- import os
30
 
31
  custom_css = """
32
  @import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Dots:[email protected]&family=Give+You+Glory&family=Sofia&family=Sunshiney&family=Vujahday+Script&display=swap');
 
1
+ #importing libraries
2
+ import keras_nlp
3
+ import gradio as gr
4
+ import keras
5
+ import time
6
+ from huggingface_hub import InferenceClient
7
+ import os
 
 
 
 
 
 
 
 
 
 
 
8
 
9
 
10
+ model_path = "Zul001/HydroSense_Gemma_Finetuned_Model"
11
+ gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset(f"hf://{model_path}")
12
 
13
 
14
 
 
 
 
 
15
 
16
  custom_css = """
17
  @import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Dots:[email protected]&family=Give+You+Glory&family=Sofia&family=Sunshiney&family=Vujahday+Script&display=swap');