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
f937687e
Commit
f937687e
authored
May 24, 2022
by
SimonGlomb
Browse files
run code on request
parent
27ff56cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
code/frontend.py
View file @
f937687e
...
...
@@ -10,7 +10,7 @@ def hello_world():
@
app
.
route
(
"/run_code"
)
def
run_code
():
os
.
system
(
"python ./code/
test
.py"
)
os
.
system
(
"python ./code/
main
.py"
)
return
"<p>some text</p>"
...
...
code/main.py
View file @
f937687e
...
...
@@ -19,7 +19,7 @@ p_attr_weights = {
'producer'
:
2
}
# attributes that are not given in the data are not used
p_clustering_mode
=
'kmeans'
# optional, default: kmeans
p_cluster_count
=
np
.
NaN
# cluster-count (optional, default: np.NaN which leads to automatic k determination)
p_cluster_count
=
3
#
np.NaN # cluster-count (optional, default: np.NaN which leads to automatic k determination)
p_ocel_file_type
=
'json'
# json|xml
p_graph_file_type
=
'svg'
# svg|png
# END PARAMETERS
...
...
code/test.py
deleted
100644 → 0
View file @
27ff56cf
print
(
"hello"
)
\ 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