Update app.py
Browse files
app.py
CHANGED
@@ -21,30 +21,30 @@ from streamlit_extras.stylable_container import stylable_container
|
|
21 |
from streamlit_extras.stateful_button import button
|
22 |
import json
|
23 |
from io import BytesIO
|
24 |
-
######
|
25 |
-
import os
|
26 |
-
import subprocess
|
27 |
|
28 |
-
# Run the commands to install ODBC driver
|
29 |
-
subprocess.run([
|
30 |
-
|
31 |
-
])
|
32 |
-
subprocess.run([
|
33 |
-
|
34 |
-
])
|
35 |
-
subprocess.run([
|
36 |
-
|
37 |
-
])
|
38 |
-
subprocess.run([
|
39 |
-
|
40 |
-
|
41 |
-
])
|
42 |
-
subprocess.run([
|
43 |
-
|
44 |
-
])
|
45 |
-
subprocess.run([
|
46 |
-
|
47 |
-
])
|
48 |
###########
|
49 |
genai.configure(api_key='AIzaSyCeY8jSHKW6t0OSDRjc2VAfBvMunVrff2w')
|
50 |
genai_mod = genai.GenerativeModel(
|
|
|
21 |
from streamlit_extras.stateful_button import button
|
22 |
import json
|
23 |
from io import BytesIO
|
24 |
+
# ######
|
25 |
+
# import os
|
26 |
+
# import subprocess
|
27 |
|
28 |
+
# # Run the commands to install ODBC driver
|
29 |
+
# subprocess.run([
|
30 |
+
# "apt-get", "update"
|
31 |
+
# ])
|
32 |
+
# subprocess.run([
|
33 |
+
# "apt-get", "install", "-y", "curl", "apt-transport-https"
|
34 |
+
# ])
|
35 |
+
# subprocess.run([
|
36 |
+
# "curl", "https://packages.microsoft.com/keys/microsoft.asc", "|", "apt-key", "add", "-"
|
37 |
+
# ])
|
38 |
+
# subprocess.run([
|
39 |
+
# "curl", "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list",
|
40 |
+
# "|", "tee", "/etc/apt/sources.list.d/mssql-release.list"
|
41 |
+
# ])
|
42 |
+
# subprocess.run([
|
43 |
+
# "apt-get", "update"
|
44 |
+
# ])
|
45 |
+
# subprocess.run([
|
46 |
+
# "ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev"
|
47 |
+
# ])
|
48 |
###########
|
49 |
genai.configure(api_key='AIzaSyCeY8jSHKW6t0OSDRjc2VAfBvMunVrff2w')
|
50 |
genai_mod = genai.GenerativeModel(
|