Sobit commited on
Commit
91e4530
·
verified ·
1 Parent(s): fad5199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -11,10 +11,9 @@ import requests
11
  from datetime import datetime
12
  import google.generativeai as genai # Import Gemini API
13
  from tensorflow.keras.models import load_model
14
- from vit import vit_classifier
15
-
16
  # Load the model
17
- model = load_model('vit_updated.weights.h5') # Replace with your model file path
18
  # Configuring Google Gemini API
19
  GEMINI_API_KEY = os.getenv("GOOGLE_API_KEY")
20
  genai.configure(api_key=GEMINI_API_KEY)
 
11
  from datetime import datetime
12
  import google.generativeai as genai # Import Gemini API
13
  from tensorflow.keras.models import load_model
14
+ from vit import create_vit_classfier
 
15
  # Load the model
16
+ vit_classifier = load_model('models/vit_updated.weights.h5') # Replace with your model file path
17
  # Configuring Google Gemini API
18
  GEMINI_API_KEY = os.getenv("GOOGLE_API_KEY")
19
  genai.configure(api_key=GEMINI_API_KEY)