Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,6 @@ DESCRIPTION = '''
|
|
24 |
</div>
|
25 |
'''
|
26 |
|
27 |
-
|
28 |
css = """
|
29 |
h1 {
|
30 |
text-align: center;
|
@@ -35,10 +34,6 @@ footer {
|
|
35 |
}
|
36 |
"""
|
37 |
|
38 |
-
|
39 |
-
LICENSE = 'MODEL: ' + MODEL + ' LOADED'
|
40 |
-
|
41 |
-
|
42 |
def endpoints(api_key):
|
43 |
if api_key is not None:
|
44 |
if api_key[:3] == "sk-":
|
@@ -49,6 +44,7 @@ def endpoints(api_key):
|
|
49 |
return 'GOOGLE'
|
50 |
return
|
51 |
|
|
|
52 |
endpoints = endpoints(api_key)
|
53 |
|
54 |
def read(filename):
|
|
|
24 |
</div>
|
25 |
'''
|
26 |
|
|
|
27 |
css = """
|
28 |
h1 {
|
29 |
text-align: center;
|
|
|
34 |
}
|
35 |
"""
|
36 |
|
|
|
|
|
|
|
|
|
37 |
def endpoints(api_key):
|
38 |
if api_key is not None:
|
39 |
if api_key[:3] == "sk-":
|
|
|
44 |
return 'GOOGLE'
|
45 |
return
|
46 |
|
47 |
+
LICENSE = 'MODEL: ' + model_name + ' LOADED'
|
48 |
endpoints = endpoints(api_key)
|
49 |
|
50 |
def read(filename):
|