Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,6 @@ DESCRIPTION = '''
|
|
| 21 |
</div>
|
| 22 |
'''
|
| 23 |
|
| 24 |
-
LICENSE = 'MODEL: ' + model_name + ' LOADED'
|
| 25 |
-
|
| 26 |
-
|
| 27 |
css = """
|
| 28 |
h1 {
|
| 29 |
text-align: center;
|
|
@@ -34,6 +31,8 @@ footer {
|
|
| 34 |
}
|
| 35 |
"""
|
| 36 |
|
|
|
|
|
|
|
| 37 |
def endpoints(api_key):
|
| 38 |
if api_key is not None:
|
| 39 |
if api_key.startswith('sk-'):
|
|
@@ -44,7 +43,7 @@ def endpoints(api_key):
|
|
| 44 |
model_name = "models/gemini-1.5-pro-latest"
|
| 45 |
endpoint = 'GOOGLE'
|
| 46 |
return model_name, endpoint
|
| 47 |
-
|
| 48 |
def read(filename):
|
| 49 |
with open(filename) as f:
|
| 50 |
data = f.read()
|
|
|
|
| 21 |
</div>
|
| 22 |
'''
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
css = """
|
| 25 |
h1 {
|
| 26 |
text-align: center;
|
|
|
|
| 31 |
}
|
| 32 |
"""
|
| 33 |
|
| 34 |
+
LICENSE = '[Medster](https://huggingface.co/spaces/vilarin/Medster)'
|
| 35 |
+
|
| 36 |
def endpoints(api_key):
|
| 37 |
if api_key is not None:
|
| 38 |
if api_key.startswith('sk-'):
|
|
|
|
| 43 |
model_name = "models/gemini-1.5-pro-latest"
|
| 44 |
endpoint = 'GOOGLE'
|
| 45 |
return model_name, endpoint
|
| 46 |
+
|
| 47 |
def read(filename):
|
| 48 |
with open(filename) as f:
|
| 49 |
data = f.read()
|