sreepathi-ravikumar commited on
Commit
87f10b8
·
verified ·
1 Parent(s): ede9fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import asyncio
8
  from image_fetcher import main
9
  from video import create_text_image
10
 
11
- app = Flask(_name_)
12
 
13
  @app.route("/")
14
  def home():
@@ -101,7 +101,7 @@ def generate_video():
101
  traceback.print_exc()
102
  return jsonify({"error": str(e)}), 500
103
 
104
- if _name_ == "_main_":
105
  app.run(host="0.0.0.0", port=7860)
106
 
107
  # Example call (remove or change in your actual app)
 
8
  from image_fetcher import main
9
  from video import create_text_image
10
 
11
+ app = Flask(__name__)
12
 
13
  @app.route("/")
14
  def home():
 
101
  traceback.print_exc()
102
  return jsonify({"error": str(e)}), 500
103
 
104
+ if __name__ == "__main__":
105
  app.run(host="0.0.0.0", port=7860)
106
 
107
  # Example call (remove or change in your actual app)