{"id":3900,"date":"2023-11-04T23:13:55","date_gmt":"2023-11-04T23:13:55","guid":{"rendered":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/"},"modified":"2023-11-05T05:48:28","modified_gmt":"2023-11-05T05:48:28","slug":"how-to-build-a-text-summarizer-with-openai-gpt-3-and-django","status":"publish","type":"post","link":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/","title":{"rendered":"How to Build a Text Summarizer with OpenAI GPT-3 and Django"},"content":{"rendered":"

In this tutorial, we will walk through the steps to build a text summarizer using OpenAI GPT-3 and Django, a popular Python web framework. We will utilize the power of GPT-3 to generate concise summaries of long texts.<\/p>\n

Prerequisites<\/h2>\n

To follow along with this tutorial, you should have the following prerequisites:<\/p>\n

    \n
  1. Basic knowledge of Python and Django.<\/li>\n
  2. OpenAI GPT-3 API key. You can obtain the API key from OpenAI’s website.<\/li>\n
  3. Python 3.x installed on your machine.<\/li>\n<\/ol>\n

    Setting Up the Django Project<\/h2>\n

    To get started, let’s create a new Django project and set up the basic structure. Open your terminal or command prompt and run the following commands:<\/p>\n

    $ django-admin startproject text_summarizer\n$ cd text_summarizer\n$ python manage.py startapp summarizer\n<\/code><\/pre>\n

    This will create a new Django project called “text_summarizer” and a new app called “summarizer” within the project.<\/p>\n

    Next, let’s update the project settings. Open the settings.py<\/code> file located in the text_summarizer<\/code> directory and add ‘summarizer’ to the INSTALLED_APPS<\/code> list:<\/p>\n

    INSTALLED_APPS = [\n    ...\n    'summarizer',\n]\n<\/code><\/pre>\n

    In the same file, locate the TEMPLATES<\/code> variable and add the following 'DIRS'<\/code> option:<\/p>\n

    TEMPLATES = [\n    {\n        ...\n        'DIRS': [os.path.join(BASE_DIR, 'templates')],\n        ...\n    },\n]\n<\/code><\/pre>\n

    We have added the directory where our templates will be stored.<\/p>\n

    Next, let’s create a template for our summarizer. Create a new directory called ‘templates’ in the project’s root directory, and then create a new file named ‘index.html’ inside the templates directory.<\/p>\n

    Creating the Text Summarization Form<\/h2>\n

    Open the index.html<\/code> file you just created and add the following code:<\/p>\n

    <!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Text Summarization<\/title>\n<\/head>\n<body>\n    <h1>Text Summarization<\/h1>\n    <form method=\"POST\" action=\"{% url 'summarizer:summarize' %}\">\n        {% csrf_token %}\n        <textarea name=\"text\" rows=\"10\" cols=\"50\"><\/textarea>\n        <button type=\"submit\">Summarize<\/button>\n    <\/form>\n    {% if summary %}\n        <h2>Summary:<\/h2>\n        <p>{{ summary }}<\/p>\n    {% endif %}\n<\/body>\n<\/html>\n<\/code><\/pre>\n

    This HTML code creates a basic form where users can input the text they want to summarize. When the form is submitted, it will make a POST request to the summarize<\/code> URL.<\/p>\n

    Adding Views and URLs<\/h2>\n

    Now, let’s define the views and URLs for our summarizer app. Open the views.py<\/code> file located inside the summarizer<\/code> app directory and replace the existing code with the following:<\/p>\n

    from django.shortcuts import render\nimport openai\n\ndef summarize(request):\n    if request.method == 'POST':\n        text = request.POST.get('text')\n        api_key = 'YOUR_OPENAI_API_KEY'  # Replace with your actual API key\n        openai.api_key = api_key\n\n        response = openai.Completion.create(\n            engine='text-davinci-003',\n            prompt=text,\n            max_tokens=100,\n            temperature=0.3,\n            n=1,\n            stop=None\n        )\n\n        summary = response.choices[0].text\n\n        return render(request, 'index.html', {'summary': summary})\n\n    return render(request, 'index.html')\n<\/code><\/pre>\n

    In the summarize<\/code> view, we first check if the request method is POST. If it is, we retrieve the text entered by the user using request.POST.get('text')<\/code>.<\/p>\n

    Next, we specify our OpenAI API key by replacing 'YOUR_OPENAI_API_KEY'<\/code> with the actual key you obtained.<\/p>\n

    We then use the OpenAI Python package to make an API call to GPT-3 for text summarization. The openai.Completion.create<\/code> method takes various parameters such as the engine, prompt, max_tokens, temperature, n, and stop.<\/p>\n

    The summary<\/code> variable contains the generated text summary obtained from the API response. Finally, we render the index.html<\/code> template, passing the summary<\/code> as a context variable.<\/p>\n

    Next, open the urls.py<\/code> file located in the summarizer<\/code> app directory and add the following code:<\/p>\n

    from django.urls import path\nfrom . import views\n\napp_name = 'summarizer'\n\nurlpatterns = [\n    path('', views.summarize, name='summarize'),\n]\n<\/code><\/pre>\n

    This code sets up the URL patterns for our summarizer app. We map the root URL to the summarize<\/code> view.<\/p>\n

    Testing the Text Summarizer<\/h2>\n

    Now that we have set up our Django project, let’s test our text summarizer. Start the development server by running the following command in your terminal or command prompt:<\/p>\n

    $ python manage.py runserver\n<\/code><\/pre>\n

    Open your web browser and navigate to `http:\/\/localhost:8000` to access the text summarizer form.<\/p>\n

    Enter a piece of text in the input field and click on the “Summarize” button. The form will be submitted, and the summary will be displayed on the same page.<\/p>\n

    Deploying the Text Summarizer<\/h2>\n

    Once you are satisfied with the functionality of your text summarizer, you can deploy it to a hosting platform to make it publicly accessible. There are several options to choose from, such as Heroku, AWS, or PythonAnywhere. Below, we will cover a simple deployment using Heroku as an example.<\/p>\n

    Deploying to Heroku<\/h3>\n

    To deploy your Django app on Heroku, follow these steps:<\/p>\n

      \n
    1. Create a new Heroku account if you don’t have one already.<\/p>\n<\/li>\n
    2. \n

      Install the Heroku CLI by following the instructions on the Heroku Dev Center<\/a>.<\/p>\n<\/li>\n

    3. \n

      Login to the Heroku CLI using the following command:<\/p>\n

      $ heroku login\n<\/code><\/pre>\n<\/li>\n
    4. Create a new Heroku app by running the following command:\n
      $ heroku create your-app-name\n<\/code><\/pre>\n

      Replace “your-app-name” with your desired app name.<\/p>\n<\/li>\n

    5. \n

      Add the following buildpacks for Python and Node.js:<\/p>\n

      $ heroku buildpacks:add heroku\/python\n$ heroku buildpacks:add heroku\/nodejs\n<\/code><\/pre>\n<\/li>\n
    6. Commit any uncommitted changes to your Git repository.<\/p>\n<\/li>\n
    7. \n

      Push your code to the Heroku remote:<\/p>\n

      $ git push heroku master\n<\/code><\/pre>\n<\/li>\n
    8. Run the following command to scale your Heroku app to one web dyno:\n
      $ heroku ps:scale web=1\n<\/code><\/pre>\n<\/li>\n
    9. Set your OpenAI API key as an environment variable on Heroku using the following command:\n
      $ heroku config:set OPENAI_API_KEY=YOUR_OPENAI_API_KEY\n<\/code><\/pre>\n

      Replace “YOUR_OPENAI_API_KEY” with your actual OpenAI API key.<\/p>\n<\/li>\n

    10. \n

      Run the following command to open your deployed Django app in a web browser:<\/p>\n

      $ heroku open\n<\/code><\/pre>\n<\/li>\n<\/ol>\n

      Congratulations! You have successfully deployed your text summarizer app to Heroku.<\/p>\n

      Conclusion<\/h2>\n

      In this tutorial, we explored how to build a text summarizer using OpenAI GPT-3 and Django. We covered the necessary steps to set up a Django project, wrote the views, and created the necessary templates. We also discussed how to deploy the app to Heroku for public access.<\/p>\n

      With this text summarizer, you can now generate concise summaries of long texts using the power of OpenAI GPT-3. The possibilities for this type of technology are endless, and you can further enhance and optimize the summarizer based on your specific use case and requirements.<\/p>\n","protected":false},"excerpt":{"rendered":"

      In this tutorial, we will walk through the steps to build a text summarizer using OpenAI GPT-3 and Django, a popular Python web framework. We will utilize the power of GPT-3 to generate concise summaries of long texts. Prerequisites To follow along with this tutorial, you should have the following Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[207,117,205,41,40,206,116,75,49,204],"yoast_head":"\nHow to Build a Text Summarizer with OpenAI GPT-3 and Django - Pantherax Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Build a Text Summarizer with OpenAI GPT-3 and Django\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will walk through the steps to build a text summarizer using OpenAI GPT-3 and Django, a popular Python web framework. We will utilize the power of GPT-3 to generate concise summaries of long texts. Prerequisites To follow along with this tutorial, you should have the following Continue Reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\" \/>\n<meta property=\"og:site_name\" content=\"Pantherax Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T23:13:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-05T05:48:28+00:00\" \/>\n<meta name=\"author\" content=\"Panther\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Panther\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Panther\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\"\n\t },\n\t \"headline\": \"How to Build a Text Summarizer with OpenAI GPT-3 and Django\",\n\t \"datePublished\": \"2023-11-04T23:13:55+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:28+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\"\n\t },\n\t \"wordCount\": 801,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"keywords\": [\n\t \"\\\"AI\\\"]\",\n\t \"\\\"Django\\\"\",\n\t \"\\\"how to build a text summarizer\\\"\",\n\t \"\\\"Machine Learning\\\"\",\n\t \"\\\"Natural Language Processing\\\"\",\n\t \"\\\"NLP\\\"\",\n\t \"\\\"OpenAI GPT-3\\\"\",\n\t \"\\\"Python\\\"\",\n\t \"\\\"Web development\\\"\",\n\t \"[\\\"text summarizer\\\"\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\",\n\t \"url\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\",\n\t \"name\": \"How to Build a Text Summarizer with OpenAI GPT-3 and Django - Pantherax Blogs\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#website\"\n\t },\n\t \"datePublished\": \"2023-11-04T23:13:55+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:28+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10003\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"How to Build a Text Summarizer with OpenAI GPT-3 and Django\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10003\/#website\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"description\": \"\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10003\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"Organization\",\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"logo\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\",\n\t \"url\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"contentUrl\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"width\": 1024,\n\t \"height\": 1024,\n\t \"caption\": \"Pantherax Blogs\"\n\t },\n\t \"image\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\"\n\t }\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\",\n\t \"name\": \"Panther\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"caption\": \"Panther\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10003\"\n\t ],\n\t \"url\": \"http:\/\/localhost:10003\/author\/pepethefrog\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Build a Text Summarizer with OpenAI GPT-3 and Django - Pantherax Blogs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/","og_locale":"en_US","og_type":"article","og_title":"How to Build a Text Summarizer with OpenAI GPT-3 and Django","og_description":"In this tutorial, we will walk through the steps to build a text summarizer using OpenAI GPT-3 and Django, a popular Python web framework. We will utilize the power of GPT-3 to generate concise summaries of long texts. Prerequisites To follow along with this tutorial, you should have the following Continue Reading","og_url":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/","og_site_name":"Pantherax Blogs","article_published_time":"2023-11-04T23:13:55+00:00","article_modified_time":"2023-11-05T05:48:28+00:00","author":"Panther","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Panther","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#article","isPartOf":{"@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/"},"author":{"name":"Panther","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7"},"headline":"How to Build a Text Summarizer with OpenAI GPT-3 and Django","datePublished":"2023-11-04T23:13:55+00:00","dateModified":"2023-11-05T05:48:28+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/"},"wordCount":801,"publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"keywords":["\"AI\"]","\"Django\"","\"how to build a text summarizer\"","\"Machine Learning\"","\"Natural Language Processing\"","\"NLP\"","\"OpenAI GPT-3\"","\"Python\"","\"Web development\"","[\"text summarizer\""],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/","url":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/","name":"How to Build a Text Summarizer with OpenAI GPT-3 and Django - Pantherax Blogs","isPartOf":{"@id":"http:\/\/localhost:10003\/#website"},"datePublished":"2023-11-04T23:13:55+00:00","dateModified":"2023-11-05T05:48:28+00:00","breadcrumb":{"@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10003\/how-to-build-a-text-summarizer-with-openai-gpt-3-and-django\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10003\/"},{"@type":"ListItem","position":2,"name":"How to Build a Text Summarizer with OpenAI GPT-3 and Django"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10003\/#website","url":"http:\/\/localhost:10003\/","name":"Pantherax Blogs","description":"","publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10003\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/localhost:10003\/#organization","name":"Pantherax Blogs","url":"http:\/\/localhost:10003\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/","url":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","contentUrl":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","width":1024,"height":1024,"caption":"Pantherax Blogs"},"image":{"@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7","name":"Panther","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","caption":"Panther"},"sameAs":["http:\/\/localhost:10003"],"url":"http:\/\/localhost:10003\/author\/pepethefrog\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3900"}],"collection":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/comments?post=3900"}],"version-history":[{"count":1,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3900\/revisions"}],"predecessor-version":[{"id":4636,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3900\/revisions\/4636"}],"wp:attachment":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/media?parent=3900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/categories?post=3900"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/tags?post=3900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}