Vara1605454 commited on
Commit
b7bd5a5
·
verified ·
1 Parent(s): 62a5350

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -43
app.py DELETED
@@ -1,43 +0,0 @@
1
- from flask import Flask
2
- import torch
3
-
4
- app = Flask(__name__)
5
-
6
- @app.route('/')
7
- def hello():
8
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
9
- return f"""
10
- <h1>Video Captioning App - Test</h1>
11
- <p>Device: {device}</p>
12
- <p>PyTorch version: {torch.__version__}</p>
13
- <p>App is running successfully!</p>
14
- """
15
-
16
- @app.route('/status')
17
- def status():
18
- return {'status': 'running', 'device': str(torch.device("cuda" if torch.cuda.is_available() else "cpu"))}
19
-
20
- if __name__ == '__main__':
21
- print("Starting simple test app...")
22
- app.run(host="0.0.0.0", port=7860, debug=False)from flask import Flask
23
- import torch
24
-
25
- app = Flask(__name__)
26
-
27
- @app.route('/')
28
- def hello():
29
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
30
- return f"""
31
- <h1>Video Captioning App - Test</h1>
32
- <p>Device: {device}</p>
33
- <p>PyTorch version: {torch.__version__}</p>
34
- <p>App is running successfully!</p>
35
- """
36
-
37
- @app.route('/status')
38
- def status():
39
- return {'status': 'running', 'device': str(torch.device("cuda" if torch.cuda.is_available() else "cpu"))}
40
-
41
- if __name__ == '__main__':
42
- print("Starting simple test app...")
43
- app.run(host="0.0.0.0", port=7860, debug=False)