import os def generate_pcr_input_html(): output_dir = './output/' os.makedirs(output_dir, exist_ok=True) html_file_path = os.path.join(output_dir, 'input_pcr.html') html_content = """ Nifty PCR Input

Nifty PCR Value Input

How to use this page:

  1. Enter your desired PCR value in the field above.
  2. Click 'Display PCR Value'.
  3. Manually copy the displayed value.
  4. Paste the copied value into the Colab notebook in a code cell (e.g., `pcr_from_html = 1.05`) and then pass it to the `run_daily_analysis_with_pcr()` function.

""" try: with open(html_file_path, 'w') as f: f.write(html_content) print(f"Dynamic HTML input page saved to '{html_file_path}'") print(f"You can download it from the file browser (folder icon on the left) and open it in your web browser.") except Exception as e: print(f"Error saving HTML input page: {e}") generate_pcr_input_html()