Update app.py
Browse files
app.py
CHANGED
@@ -71,9 +71,9 @@ def home():
|
|
71 |
<p>To use the API, send a POST request to <code>/translate</code>.</p>
|
72 |
<h2>Request Payload</h2>
|
73 |
<pre>{
|
74 |
-
"<span class="payload-key">text</span>" : "<span class="payload-value">Siku njema</span>"
|
75 |
"<span class="payload-key">source_language</span>" : "<span class="payload-value">sw</span>"
|
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>
|
|
|
71 |
<p>To use the API, send a POST request to <code>/translate</code>.</p>
|
72 |
<h2>Request Payload</h2>
|
73 |
<pre>{
|
74 |
+
"<span class="payload-key">text</span>" : "<span class="payload-value">Siku njema</span>",
|
75 |
"<span class="payload-key">source_language</span>" : "<span class="payload-value">sw</span>"
|
76 |
+
}</pre>
|
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>
|