Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from flask import Flask, render_template_string
|
2 |
|
3 |
app = Flask(__name__)
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
# Function to install a package using pip
|
5 |
+
def install_package(package):
|
6 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
7 |
+
|
8 |
+
# Install Flask
|
9 |
+
install_package("flask")
|
10 |
+
|
11 |
from flask import Flask, render_template_string
|
12 |
|
13 |
app = Flask(__name__)
|