Skip to content

Instantly share code, notes, and snippets.

@kusal1990
Created June 28, 2022 05:43
Show Gist options
  • Save kusal1990/393c3dd093947115c032838007afc597 to your computer and use it in GitHub Desktop.
Save kusal1990/393c3dd093947115c032838007afc597 to your computer and use it in GitHub Desktop.
# to open/create a new html file in the write mode
f = open('index8051.html', 'w')
# the html code which will go in the file GFG.html
html_template = """<html>
<head>
<title></title>
</head>
<body>
<h2>AI2 Reasoning Challenge (ARC) 2018:MultipleChoice Question Answering</h2>
<p>
<form action="/predict" method="POST">
<label for="question">question</label>
<textarea name="question" rows="10" cols="30"></textarea>>
<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