Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,11 @@ from looking import lookup_player_team_umpire
|
|
| 7 |
|
| 8 |
app = Flask(__name__)
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
@app.route('/')
|
| 11 |
def home():
|
| 12 |
return render_template('index.html')
|
|
@@ -40,5 +45,5 @@ def lookup():
|
|
| 40 |
return render_template('lookup.html', result=result)
|
| 41 |
|
| 42 |
if __name__ == '__main__':
|
| 43 |
-
app.run(debug=True, host='0.0.0.0', port=
|
| 44 |
|
|
|
|
| 7 |
|
| 8 |
app = Flask(__name__)
|
| 9 |
|
| 10 |
+
@app.route('/test')
|
| 11 |
+
def test():
|
| 12 |
+
return "App is running!"
|
| 13 |
+
|
| 14 |
+
|
| 15 |
@app.route('/')
|
| 16 |
def home():
|
| 17 |
return render_template('index.html')
|
|
|
|
| 45 |
return render_template('lookup.html', result=result)
|
| 46 |
|
| 47 |
if __name__ == '__main__':
|
| 48 |
+
app.run(debug=True, host='0.0.0.0', port=5001) # Custom port number
|
| 49 |
|