Spaces:
Runtime error
Runtime error
File size: 300 Bytes
d8d3c9d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import os
from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class Greeting (Resource):
def get(self):
return "Telethon Music is Up & Running!"
api.add_resource(Greeting, '/')
app.run(host="0.0.0.0", port=os.environ.get("PORT", 8080))
|