Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,6 @@ from tensorflow.keras.applications.resnet50 import preprocess_input, decode_pred
|
|
| 10 |
# Load the ResNet50 model
|
| 11 |
model = ResNet50(weights='imagenet')
|
| 12 |
|
| 13 |
-
def get_gemini_response(input_text, image_data, prompt):
|
| 14 |
-
# Dummy response for testing purposes
|
| 15 |
-
response = f"Analyzing: {input_text}, Image data processed."
|
| 16 |
-
return response
|
| 17 |
-
|
| 18 |
def process_image(image):
|
| 19 |
try:
|
| 20 |
if image is None:
|
|
@@ -93,4 +88,4 @@ def main():
|
|
| 93 |
iface.launch()
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
| 96 |
-
main()
|
|
|
|
| 10 |
# Load the ResNet50 model
|
| 11 |
model = ResNet50(weights='imagenet')
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
def process_image(image):
|
| 14 |
try:
|
| 15 |
if image is None:
|
|
|
|
| 88 |
iface.launch()
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
+
main()
|