fix
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def home():
|
|
29 |
.container {{
|
30 |
width: 80%;
|
31 |
margin: auto;
|
32 |
-
margin-top:
|
33 |
overflow: hidden;
|
34 |
background: #fff;
|
35 |
padding: 20px;
|
@@ -70,10 +70,12 @@ def home():
|
|
70 |
<p>Welcome to the ChatEasy swa-eng Translation API documentation.</p>
|
71 |
<p>To use the API, send a POST request to <code>/translate</code>.</p>
|
72 |
<h2>Request Payload</h2>
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
77 |
<h2>Expected Response</h2>
|
78 |
<pre>{ "<span class="payload-key">translated_text</span>" : "<span class="payload-value">A good day</span>" }</pre>
|
79 |
</div>
|
|
|
29 |
.container {{
|
30 |
width: 80%;
|
31 |
margin: auto;
|
32 |
+
margin-top: 50px;
|
33 |
overflow: hidden;
|
34 |
background: #fff;
|
35 |
padding: 20px;
|
|
|
70 |
<p>Welcome to the ChatEasy swa-eng Translation API documentation.</p>
|
71 |
<p>To use the API, send a POST request to <code>/translate</code>.</p>
|
72 |
<h2>Request Payload</h2>
|
73 |
+
<pre>
|
74 |
+
{
|
75 |
+
"<span class="payload-key">text</span>" : "<span class="payload-value">Siku njema</span>",
|
76 |
+
"<span class="payload-key">source_language</span>" : "<span class="payload-value">sw</span>"
|
77 |
+
}
|
78 |
+
</pre>
|
79 |
<h2>Expected Response</h2>
|
80 |
<pre>{ "<span class="payload-key">translated_text</span>" : "<span class="payload-value">A good day</span>" }</pre>
|
81 |
</div>
|