rmayormartins
commited on
Commit
•
2f3c50a
1
Parent(s):
228a66b
Subindo arquivos33137
Browse files- app.py +1 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -49,7 +49,7 @@ def analyze_image_properties(image):
|
|
49 |
|
50 |
# Análise de textura
|
51 |
texture_contrast = calculate_glcm_contrast(image)
|
52 |
-
texture = 'lisa'
|
53 |
|
54 |
return temperature, texture
|
55 |
|
|
|
49 |
|
50 |
# Análise de textura
|
51 |
texture_contrast = calculate_glcm_contrast(image)
|
52 |
+
texture = 'lisa' if texture_contrast < 100 else 'texturizada'
|
53 |
|
54 |
return temperature, texture
|
55 |
|
requirements.txt
CHANGED
@@ -7,3 +7,4 @@ transformers
|
|
7 |
gtts
|
8 |
sentencepiece
|
9 |
huggingface_hub
|
|
|
|
7 |
gtts
|
8 |
sentencepiece
|
9 |
huggingface_hub
|
10 |
+
|