Spaces:
Sleeping
Sleeping
Siyun He
commited on
Commit
·
c422c3b
1
Parent(s):
3e501e6
update gradio interface
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from classification import classify_image
|
3 |
-
import pickle
|
4 |
|
5 |
# List of example images
|
6 |
examples = [
|
@@ -19,7 +18,7 @@ iface = gr.Interface(
|
|
19 |
],
|
20 |
outputs='text',
|
21 |
title='Texture Classification',
|
22 |
-
description='Upload an image and choose an algorithm (GLCM or LBP) for texture classification.',
|
23 |
examples=examples # Add examples directly to the interface
|
24 |
)
|
25 |
|
|
|
1 |
import gradio as gr
|
2 |
from classification import classify_image
|
|
|
3 |
|
4 |
# List of example images
|
5 |
examples = [
|
|
|
18 |
],
|
19 |
outputs='text',
|
20 |
title='Texture Classification',
|
21 |
+
description='Upload an image and choose an algorithm (GLCM or LBP) for texture classification. Or select an example image from the dropdown menu.',
|
22 |
examples=examples # Add examples directly to the interface
|
23 |
)
|
24 |
|