How to refresh and clear search result in django

Hello, I have an issue with a search engine I wrote in django. I can look for my query just fine but whenever I refresh the website, the result doesn’t go away until I look for another thing and the new one appears. How do I get rid of it?

This is my view:

from django.shortcuts import render, HttpResponse
from django.views.generic import ListView
import requests



def index(request):
    movies = []
    
    if request.method == 'POST':
        
        film_url = 'https://ghibliapi.herokuapp.com/films/'
        
        search_params = {
            'films' : 'title',
            'films' : 'description',
            'films' : 'director',
            'films' : 'release_date',
            'q' : request.POST['search']
            
            }

        
        r = requests.get(film_url, params=search_params)
        results = r.json()
        

        for result in results:
             movie_data = {
                'Title' : result['title'],
                'Release_date': result['release_date'],
                'Director' : result['director'],
                'Producer' : result['producer'],
                'Description' : result['description']
            }

        movies.append(movie_data)  
        print(movies)
     

    context = {
    'movies' : movies
    }
        
    return render(request,'core/index.html', context)

This is my html:

{% load static %}
<!DOCTYPE html>
<html>
<head>
    <title>Ghibli Studio | Movies</title>
    <link rel="stylesheet" href="{% static 'core/main.css' %}">
</head>
<body>
    <div class=" header">

    </div>
    <div class="wrap">
        <form action='/' method="POST">
            {% csrf_token %}
            <div class="search">


                <input type="text" name="search" class="searchTerm" placeholder="Type movie name">
                <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
                <button type="submit" class="searchButton">

                    <i class="fa fa-search" style="font-size:24px"></i>
                </button>

            </div>


        </form>
    </div>

    {% if movies %}
    {% for movie in movies %}
    <div>
        <ul class="result">
            <style>
                @import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300&display=swap');
            </style>
          
            <h4>{{movie.Title}}</h4>
            <h5 style= "color:lightslategray;">
                Release date: {{movie.Release_date}} <br>
                Director: {{movie.Director}}
                <br>Producer: {{movie.Producer}}
                <br>
                <br>{{movie.Description}}
            </h5>
          

        </ul>
        {% endfor %}

        {% endif %}
    </div>


</body>
</html>