codebyam commited on
Commit
e0ae2f7
·
verified ·
1 Parent(s): 3f2ea18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -432,12 +432,13 @@ async def read_items():
432
  <div id="apiModal" class="modal">
433
  <div class="modal-content">
434
  <span class="close" id="closeModal">&times;</span>
435
- <h1>API Example Model</h1>
 
436
 
437
  <h2>Python Code Snippet</h2>
438
  <pre><code>
439
  import requests
440
- url = "http://getresp.com/optimize"
441
  data = {"input_prompt": "This is my sample prompt."}
442
  response = requests.post(url, json=data)
443
  print(response.json())
@@ -445,6 +446,7 @@ print(response.json())
445
 
446
  <h2>JavaScript Code Snippet</h2>
447
  <pre><code>
 
448
  const response = await fetch(API_ENDPOINT, {
449
  method: "POST",
450
  headers: { "Content-Type": "application/json" },
 
432
  <div id="apiModal" class="modal">
433
  <div class="modal-content">
434
  <span class="close" id="closeModal">&times;</span>
435
+ <h1>API Example</h1>
436
+ <div>Integrate this tool in your projects. Start building cool tech.
437
 
438
  <h2>Python Code Snippet</h2>
439
  <pre><code>
440
  import requests
441
+ url = "https://codebyam-prompt-optimizer.hf.space/optimize"
442
  data = {"input_prompt": "This is my sample prompt."}
443
  response = requests.post(url, json=data)
444
  print(response.json())
 
446
 
447
  <h2>JavaScript Code Snippet</h2>
448
  <pre><code>
449
+ const API_ENDPOINT = "https://codebyam-prompt-optimizer.hf.space/optimize";
450
  const response = await fetch(API_ENDPOINT, {
451
  method: "POST",
452
  headers: { "Content-Type": "application/json" },