File size: 2,578 Bytes
9b2107c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <title>TTS engine</title>

  <!-- Bootstrap core CSS -->
  <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
    integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"
    rel="stylesheet">

  <!-- Custom styles for this template -->
  <style>
    body {
      padding-top: 54px;
    }

    @media (min-width: 992px) {
      body {
        padding-top: 56px;
      }
    }
  </style>
</head>

<body>
  <a href="https://github.com/mozilla/TTS"><img style="position: absolute; z-index:1000; top: 0; left: 0; border: 0;"
      src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>

  {% if show_details == true %}

  <div class="container">
    <b>Model details</b>
  </div>

  <div class="container">
    <details>
      <summary>CLI arguments:</summary>
      <table border="1" align="center" width="75%">
        <tr>
          <td> CLI key </td>
          <td> Value </td>
        </tr>

        {% for key, value in args.items() %}

        <tr>
          <td>{{ key }}</td>
          <td>{{ value }}</td>
        </tr>

        {% endfor %}
      </table>
    </details>
  </div></br>

  <div class="container">

    {% if model_config != None %}

    <details>
      <summary>Model config:</summary>

      <table border="1" align="center" width="75%">
        <tr>
          <td> Key </td>
          <td> Value </td>
        </tr>


        {% for key, value in model_config.items() %}

        <tr>
          <td>{{ key }}</td>
          <td>{{ value }}</td>
        </tr>

        {% endfor %}

      </table>
    </details>

    {% endif %}

  </div></br>



  <div class="container">
    {% if vocoder_config != None %}
    <details>
      <summary>Vocoder model config:</summary>

      <table border="1" align="center" width="75%">
        <tr>
          <td> Key </td>
          <td> Value </td>
        </tr>


        {% for key, value in vocoder_config.items() %}

        <tr>
          <td>{{ key }}</td>
          <td>{{ value }}</td>
        </tr>

        {% endfor %}


      </table>
    </details>
    {% endif %}
  </div></br>

  {% else %}
  <div class="container">
    <b>Please start server with --show_details=true to see details.</b>
  </div>

  {% endif %}

</body>

</html>