-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
THARUNESHWAR-369
committed
Apr 12, 2024
1 parent
5f2b4d2
commit c4351ad
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
import os | ||
from flask import Flask, render_template | ||
from modes.Image.image import image | ||
# from modes.Audio.audio import audio | ||
# from modes.Text.text import text | ||
from modes.Video.video import video | ||
# from modes.Image.image import image | ||
# # from modes.Audio.audio import audio | ||
# # from modes.Text.text import text | ||
# from modes.Video.video import video | ||
|
||
|
||
# ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'} | ||
|
||
app = Flask(__name__) | ||
app.secret_key = "<Your Key>" | ||
# app = Flask(__name__) | ||
# app.secret_key = "<Your Key>" | ||
|
||
app.register_blueprint(image, url_prefix="/image") | ||
# app.register_blueprint(audio, url_prefix="/audio") | ||
# app.register_blueprint(text, url_prefix="/text") | ||
app.register_blueprint(video, url_prefix="/video") | ||
# app.register_blueprint(image, url_prefix="/image") | ||
# # app.register_blueprint(audio, url_prefix="/audio") | ||
# # app.register_blueprint(text, url_prefix="/text") | ||
# app.register_blueprint(video, url_prefix="/video") | ||
|
||
@app.route("/") | ||
def home(): | ||
return render_template("home.html") | ||
# return render_template("home.html") | ||
return "Hello" | ||
|
||
if __name__ == "__main__": | ||
app.run(debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters