Spaces:
Sleeping
Sleeping
Create main.py
Browse files
main.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask, jsonify
|
2 |
+
|
3 |
+
app = Flask(__name__)
|
4 |
+
|
5 |
+
@app.route('/')
|
6 |
+
def main():
|
7 |
+
return jsonify({
|
8 |
+
'status':200,
|
9 |
+
'content':"Hello, world"
|
10 |
+
})
|
11 |
+
|
12 |
+
if __name__ == '__main__':
|
13 |
+
app.run(host='0.0.0.0', port=7860, debug=False)
|