loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.0018536846452315014","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZnJvbSBmbGFzayBpbXBvcnQgRmxhc2sKYXBwID0gRmxhc2soX19uYW1lX18pCgpAYXBwLnJvdXRlKCcvJykKZGVmIGhlbGxvX3dvcmxkKCk6CiAgICByZXR1cm4gJ09wZW4gdGhlIFVSTCBpbiBhbm90aGVyIHRhYiwgYW5kIHRoZW4gZ28gdG8gL2hlbGxvL3lvdXJuYW1lJwoKQGFwcC5yb3V0ZSgnL2hlbGxvLzxuYW1lPicpCmRlZiBoZWxsb19uYW1lKG5hbWUpOgogICAgcmV0dXJuICdIZWxsbyAnKyBuYW1lICsgJyEnCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogIGFwcC5ydW4oaG9zdD0nMC4wLjAuMCcp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Open the URL in another tab, and then go to /hello/yourname'

@app.route('/hello/<name>')
def hello_name(name):
    return 'Hello '+ name + '!'

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