Skip to content

Instantly share code, notes, and snippets.

@kusal1990
Last active June 2, 2022 18:04
Show Gist options
  • Save kusal1990/e85bf2668d4c950148e9e72edfe705dd to your computer and use it in GitHub Desktop.
Save kusal1990/e85bf2668d4c950148e9e72edfe705dd to your computer and use it in GitHub Desktop.
# to open/create a new html file in the write mode
f = open('index8050.html', 'w')
# the html code which will go in the file GFG.html
html_template = """<html>
<head>
<title></title>
</head>
<body>
<h2>VSB Power Line Fault Detection:Classification</h2>
<p>
<form action="/predict" method="POST">
<label for="meta_data">meta_data</label>
<input type="file" accept=".csv" />
<label for="signal_data">signal_data</label>
<input type="file" accept=".parquet" />
<input type="submit" value="submit" />
</form>
</p>
</body>
</html>
"""
# writing the code into the file
f.write(html_template)
# close the file
f.close()
@kusal1990
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment