Modified action in form elements and explicitly defined host
This commit is contained in:
parent
cd10a154e6
commit
5434427ff3
2
app.py
2
app.py
@ -69,4 +69,4 @@ def result():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True)
|
app.run(debug=True, host='0.0.0.0')
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<div class="card has-text-centered">
|
<div class="card has-text-centered">
|
||||||
<img src="https://cdn4.iconfinder.com/data/icons/files-and-folders-thinline-icons-set/144/File_PDF-512.png"
|
<img src="https://cdn4.iconfinder.com/data/icons/files-and-folders-thinline-icons-set/144/File_PDF-512.png"
|
||||||
alt="upload" />
|
alt="upload" />
|
||||||
<form action="http://localhost:5000/quiz" method="POST" enctype="multipart/form-data">
|
<form action="/quiz" method="POST" enctype="multipart/form-data">
|
||||||
<div id="file-js-example" class="file has-name is-fullwidth">
|
<div id="file-js-example" class="file has-name is-fullwidth">
|
||||||
<label class="file-label">
|
<label class="file-label">
|
||||||
<input class="file-input" type="file" name="file" accept=".txt, application/pdf" />
|
<input class="file-input" type="file" name="file" accept=".txt, application/pdf" />
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{% if uploaded == true %}
|
{% if uploaded == true %}
|
||||||
<form action="http://localhost:5000/result" method="POST">
|
<form action="/result" method="POST">
|
||||||
{% for i in range(size) %}
|
{% for i in range(size) %}
|
||||||
<section class="section-1" id="section-1">
|
<section class="section-1" id="section-1">
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user