Spaces:
Running
Running
Update app.py
Browse files
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(
|
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
|
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)
|