Aboge commited on
Commit
aa35680
1 Parent(s): e189651

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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>&#123;
74
- "<span class="payload-key">text</span>" : "<span class="payload-value">Siku njema</span>",<br>
75
  "<span class="payload-key">source_language</span>" : "<span class="payload-value">sw</span>"
76
- &#125;</pre>
77
  <h2>Expected Response</h2>
78
  <pre>&#123; "<span class="payload-key">translated_text</span>" : "<span class="payload-value">A good day</span>" &#125;</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>&#123;
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
+ &#125;</pre>
77
  <h2>Expected Response</h2>
78
  <pre>&#123; "<span class="payload-key">translated_text</span>" : "<span class="payload-value">A good day</span>" &#125;</pre>
79
  </div>