Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Stanislav Yuliyanov
oc-dfg-clustering
Commits
27ff56cf
Commit
27ff56cf
authored
May 24, 2022
by
SimonGlomb
Browse files
hello on request
parent
c828fe61
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/frontend.py
View file @
27ff56cf
...
...
@@ -7,5 +7,12 @@ app = Flask(__name__)
def
hello_world
():
return
"<p>Hello, World!</p>"
@
app
.
route
(
"/run_code"
)
def
run_code
():
os
.
system
(
"python ./code/test.py"
)
return
"<p>some text</p>"
if
__name__
==
"__main__"
:
app
.
run
()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment