Spaces:
Runtime error
Runtime error
changing input type for image
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ BLENHEIM_SPANIEL_CLASS = 156
|
|
30 |
def get_image_data():
|
31 |
"""Gets the image data and model."""
|
32 |
puppy_image = get_dataset_by_name(IMAGE_NAME, get_label=False)
|
33 |
-
print("IMAGE RETURNED FROM GETTING DATASET:\n",
|
34 |
model_and_data = process_imagenet_get_model(puppy_image)
|
35 |
print("MODEL RETURNED FROM PROCESSING IMAGE:\n", model_and_data)
|
36 |
return puppy_image, model_and_data
|
@@ -84,7 +84,7 @@ def image_mod(image):
|
|
84 |
|
85 |
if __name__ == "__main__":
|
86 |
|
87 |
-
inp = gr.inputs.
|
88 |
out = gr.outputs.HTML(label="Output Video")
|
89 |
|
90 |
iface = gr.Interface(
|
|
|
30 |
def get_image_data():
|
31 |
"""Gets the image data and model."""
|
32 |
puppy_image = get_dataset_by_name(IMAGE_NAME, get_label=False)
|
33 |
+
print("IMAGE RETURNED FROM GETTING DATASET:\n", puppy_image)
|
34 |
model_and_data = process_imagenet_get_model(puppy_image)
|
35 |
print("MODEL RETURNED FROM PROCESSING IMAGE:\n", model_and_data)
|
36 |
return puppy_image, model_and_data
|
|
|
84 |
|
85 |
if __name__ == "__main__":
|
86 |
|
87 |
+
inp = gr.inputs.Textbox(lines=1, placeholder="Insert file path here", default="", label="Input Image Path", optional=False)
|
88 |
out = gr.outputs.HTML(label="Output Video")
|
89 |
|
90 |
iface = gr.Interface(
|