ElenaRyumina commited on
Commit
6e3fd26
β€’
1 Parent(s): 6be1573
Files changed (2) hide show
  1. app.py +2 -25
  2. app/authors.py +34 -0
app.py CHANGED
@@ -11,6 +11,7 @@ import gradio as gr
11
 
12
  # Importing necessary components for the Gradio app
13
  from app.description import DESCRIPTION
 
14
  from app.app_utils import preprocess_and_predict
15
 
16
 
@@ -21,30 +22,6 @@ def clear():
21
  gr.Label(value=None, num_top_classes=3, scale=1, elem_classes="dl3"),
22
  )
23
 
24
- md = """
25
- App developers: ``Elena Ryumina`` and ``Dmitry Ryumin``
26
-
27
- Methodology developers: ``Elena Ryumina``, ``Denis Dresvyanskiy`` and ``Alexey Karpov``
28
-
29
- Model developer: ``Elena Ryumina``
30
-
31
- TensorFlow to PyTorch model converter: ``Maxim Markitantov`` and ``Elena Ryumina``
32
-
33
- Citation
34
-
35
- If you are using EMO-AffectNetModel in your research, please consider to cite research [paper](https://www.sciencedirect.com/science/article/pii/S0925231222012656). Here is an example of BibTeX entry:
36
-
37
- <div class="highlight highlight-text-bibtex notranslate position-relative overflow-auto" dir="auto"><pre><span class="pl-k">@article</span>{<span class="pl-en">RYUMINA2022</span>,
38
- <span class="pl-s">title</span> = <span class="pl-s"><span class="pl-pds">{</span>In Search of a Robust Facial Expressions Recognition Model: A Large-Scale Visual Cross-Corpus Study<span class="pl-pds">}</span></span>,
39
- <span class="pl-s">author</span> = <span class="pl-s"><span class="pl-pds">{</span>Elena Ryumina and Denis Dresvyanskiy and Alexey Karpov<span class="pl-pds">}</span></span>,
40
- <span class="pl-s">journal</span> = <span class="pl-s"><span class="pl-pds">{</span>Neurocomputing<span class="pl-pds">}</span></span>,
41
- <span class="pl-s">year</span> = <span class="pl-s"><span class="pl-pds">{</span>2022<span class="pl-pds">}</span></span>,
42
- <span class="pl-s">doi</span> = <span class="pl-s"><span class="pl-pds">{</span>10.1016/j.neucom.2022.10.013<span class="pl-pds">}</span></span>,
43
- <span class="pl-s">url</span> = <span class="pl-s"><span class="pl-pds">{</span>https://www.sciencedirect.com/science/article/pii/S0925231222012656<span class="pl-pds">}</span></span>,
44
- }</div>
45
- """
46
-
47
-
48
  with gr.Blocks(css="app.css") as demo:
49
  with gr.Tab("App"):
50
  gr.Markdown(value=DESCRIPTION)
@@ -74,7 +51,7 @@ with gr.Blocks(css="app.css") as demo:
74
  [input_image],
75
  )
76
  with gr.Tab("Authors"):
77
- gr.Markdown(value=md)
78
 
79
  submit.click(
80
  fn=preprocess_and_predict,
 
11
 
12
  # Importing necessary components for the Gradio app
13
  from app.description import DESCRIPTION
14
+ from app.authors import AUTHORS
15
  from app.app_utils import preprocess_and_predict
16
 
17
 
 
22
  gr.Label(value=None, num_top_classes=3, scale=1, elem_classes="dl3"),
23
  )
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  with gr.Blocks(css="app.css") as demo:
26
  with gr.Tab("App"):
27
  gr.Markdown(value=DESCRIPTION)
 
51
  [input_image],
52
  )
53
  with gr.Tab("Authors"):
54
+ gr.Markdown(value=AUTHORS)
55
 
56
  submit.click(
57
  fn=preprocess_and_predict,
app/authors.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ File: authors.py
3
+ Author: Elena Ryumina and Dmitry Ryumin
4
+ Description: About the authors.
5
+ License: MIT License
6
+ """
7
+
8
+
9
+ AUTHORS = """
10
+ Authors: [Elena Ryumina](https://github.com/ElenaRyumina), [Dmitry Ryumin](https://github.com/DmitryRyumin), [Denis Dresvyanskiy](https://www.uni-ulm.de/en/nt/staff/research-assistants/dresvyanskiy/), [Maxim Markitantov](https://hci.nw.ru/en/employees/10) and [Alexey Karpov](https://hci.nw.ru/en/employees/1)
11
+
12
+ Authorship contribution:
13
+
14
+ App developers: ``Elena Ryumina`` and ``Dmitry Ryumin``
15
+
16
+ Methodology developers: ``Elena Ryumina``, ``Denis Dresvyanskiy`` and ``Alexey Karpov``
17
+
18
+ Model developer: ``Elena Ryumina``
19
+
20
+ TensorFlow to PyTorch model converters: ``Maxim Markitantov`` and ``Elena Ryumina``
21
+
22
+ Citation
23
+
24
+ If you are using EMO-AffectNetModel in your research, please consider to cite research [paper](https://www.sciencedirect.com/science/article/pii/S0925231222012656). Here is an example of BibTeX entry:
25
+
26
+ <div class="highlight highlight-text-bibtex notranslate position-relative overflow-auto" dir="auto"><pre><span class="pl-k">@article</span>{<span class="pl-en">RYUMINA2022</span>,
27
+ <span class="pl-s">title</span> = <span class="pl-s"><span class="pl-pds">{</span>In Search of a Robust Facial Expressions Recognition Model: A Large-Scale Visual Cross-Corpus Study<span class="pl-pds">}</span></span>,
28
+ <span class="pl-s">author</span> = <span class="pl-s"><span class="pl-pds">{</span>Elena Ryumina and Denis Dresvyanskiy and Alexey Karpov<span class="pl-pds">}</span></span>,
29
+ <span class="pl-s">journal</span> = <span class="pl-s"><span class="pl-pds">{</span>Neurocomputing<span class="pl-pds">}</span></span>,
30
+ <span class="pl-s">year</span> = <span class="pl-s"><span class="pl-pds">{</span>2022<span class="pl-pds">}</span></span>,
31
+ <span class="pl-s">doi</span> = <span class="pl-s"><span class="pl-pds">{</span>10.1016/j.neucom.2022.10.013<span class="pl-pds">}</span></span>,
32
+ <span class="pl-s">url</span> = <span class="pl-s"><span class="pl-pds">{</span>https://www.sciencedirect.com/science/article/pii/S0925231222012656<span class="pl-pds">}</span></span>,
33
+ }</div>
34
+ """