Aboge commited on
Commit
f8de688
1 Parent(s): aa35680
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -29,7 +29,7 @@ def home():
29
  .container {{
30
  width: 80%;
31
  margin: auto;
32
- margin-top: 100px;
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
- <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>
 
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
+ &#123;
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
+ &#125;
78
+ </pre>
79
  <h2>Expected Response</h2>
80
  <pre>&#123; "<span class="payload-key">translated_text</span>" : "<span class="payload-value">A good day</span>" &#125;</pre>
81
  </div>