from flask import Flask
import socket


app = Flask(__name__)


@app.route("/")
def index():
    return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())

if __name__ == "__main__":
    app.run(host='0.0.0.0')


from flask import Flask

app = Flask(__name__)


@app.route("/")
def index():
    return "Hello from FLASK"

if __name__ == "__main__":
    app.run(host='0.0.0.0')

Revert "Added the output for hostname"
Revert "Added the output for hostname"

This reverts commit 490fa2d10d8a61ede28b794ed446e569f2f30318.

+ 
  from flask import Flask
- import socket
- 
  
  app = Flask(__name__)
  
  
  @app.route("/")
  def index():
-     return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
+     return "Hello from FLASK"
  
  if __name__ == "__main__":
      app.run(host='0.0.0.0')
  
Revert "Added the output for hostname"
## Code Before:
from flask import Flask
import socket


app = Flask(__name__)


@app.route("/")
def index():
    return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())

if __name__ == "__main__":
    app.run(host='0.0.0.0')

## Instruction:
Revert "Added the output for hostname"
## Code After:

from flask import Flask

app = Flask(__name__)


@app.route("/")
def index():
    return "Hello from FLASK"

if __name__ == "__main__":
    app.run(host='0.0.0.0')
