Spaces:
Runtime error
Runtime error
DeathDaDev
commited on
Commit
•
57775d5
1
Parent(s):
eaaf4b4
refactor: move hello() function to hello.py and import it in app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
from flask import Flask, render_template, Response, request, jsonify
|
|
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
from flask import Flask, render_template, Response, request, jsonify
|
4 |
+
from hello import hello
|
5 |
|
6 |
app = Flask(__name__)
|
7 |
|
hello.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def hello():
|
2 |
+
"print a greeting"
|
3 |
+
|
4 |
+
print("hello")
|