affanthinks commited on
Commit
b2e90ef
·
verified ·
1 Parent(s): cc8fbf6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ import joblib
11
 
12
 
13
  # Initialize app
14
- app = Flask("predict_revenue")
15
 
16
  @app.route("/")
17
  def home():
@@ -32,5 +32,5 @@ def predict():
32
  except Exception as e:
33
  return jsonify({"error": str(e)})
34
 
35
- if "predict_revenue" == "__main__":
36
  app.run(host="0.0.0.0", port=7860, debug=True)
 
11
 
12
 
13
  # Initialize app
14
+ app = Flask(__name__)
15
 
16
  @app.route("/")
17
  def home():
 
32
  except Exception as e:
33
  return jsonify({"error": str(e)})
34
 
35
+ if __name__ == "__main__":
36
  app.run(host="0.0.0.0", port=7860, debug=True)