Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

444
Views
how to create a progress bar in python flask for a function call in html

I wanted to run a python function when I click submit button on the index.html page, as the function takes a lot of time to run the page is getting timed out.

here is my code:

@app.route('/recommend/<search_keyword>')
def recommend(search_keyword):
    global urls
    urls=[]
    cmp='complete'
    urls=task(search_keyword)
    return render_template('index.html')

My function task() returns a list which is passed to the index.html page to display the list

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!