Spaces:
Sleeping
Sleeping
clean text
Browse files
app.py
CHANGED
@@ -14,14 +14,20 @@ learned_emojis_base64 = ''
|
|
14 |
with open(f'{base_path}/data/learned_emojis.png', 'rb') as f:
|
15 |
learned_emojis_base64 = base64.b64encode(f.read()).decode()
|
16 |
example_images = [f'{base_path}/data/test_images/smile.png']
|
17 |
-
description = ''
|
18 |
-
This project tries to classify emojis.
|
19 |
-
The model was only trained on outline images, while the input is now hand drawn.
|
20 |
-
See how it was created: https://www.kaggle.com/code/krayc81/emoji-doodle
|
21 |
-
'''
|
22 |
article = f'''
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<h3>How to Use:</h3>
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
<img src="data:image/png;base64,{learned_emojis_base64}">
|
26 |
'''
|
27 |
|
|
|
14 |
with open(f'{base_path}/data/learned_emojis.png', 'rb') as f:
|
15 |
learned_emojis_base64 = base64.b64encode(f.read()).decode()
|
16 |
example_images = [f'{base_path}/data/test_images/smile.png']
|
17 |
+
description = ''
|
|
|
|
|
|
|
|
|
18 |
article = f'''
|
19 |
+
<h3>Description</h3>
|
20 |
+
This project focuses on classifying hand-drawn emojis.
|
21 |
+
Interestingly, the model was trained exclusively on outline images, yet it's capable of interpreting hand-drawn input.
|
22 |
+
This approach demonstrates the model's ability to generalize from simplified representations to more varied, real-world examples.
|
23 |
+
Curious about the development process? You can explore the project's creation in detail here:
|
24 |
+
<a href="https://www.kaggle.com/code/krayc81/emoji-doodle">Click here</a>
|
25 |
<h3>How to Use:</h3>
|
26 |
+
1. Choose one of the emojis in the picture underneath<br>
|
27 |
+
2. Using the drawing interface on the left, sketch your interpretation of the chosen emoji.<br>
|
28 |
+
3. When you are satisfied with your drawing, click the "Submit" button.<br><br>
|
29 |
+
Your hand-drawn emoji will then be analyzed by our classification model.<br>
|
30 |
+
This interactive process allows you to test the model's ability to recognize various emoji styles and interpretations.<br>
|
31 |
<img src="data:image/png;base64,{learned_emojis_base64}">
|
32 |
'''
|
33 |
|