Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import json, os, vertexai, wandb
|
|
4 |
from dotenv import load_dotenv, find_dotenv
|
5 |
_ = load_dotenv(find_dotenv())
|
6 |
|
7 |
-
credentials = os.environ["CREDENTIALS"]
|
8 |
-
project = os.environ["PROJECT"]
|
9 |
-
wandb_api_key = os.environ["WANDB_API_KEY"]
|
10 |
|
11 |
config = {
|
12 |
"model": "text-bison@001",
|
@@ -37,7 +37,8 @@ def invoke(prompt):
|
|
37 |
return completion
|
38 |
|
39 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://cloud.google.com/vertex-ai?hl=en/'>Google Vertex AI</a> API
|
40 |
-
with Bison foundation model. Model performance evaluation via <a href='https://wandb.ai/bstraehle'>Weights & Biases</a>.
|
|
|
41 |
|
42 |
gr.close_all()
|
43 |
demo = gr.Interface(fn=invoke,
|
|
|
4 |
from dotenv import load_dotenv, find_dotenv
|
5 |
_ = load_dotenv(find_dotenv())
|
6 |
|
7 |
+
credentials = "" #os.environ["CREDENTIALS"]
|
8 |
+
project = "" #os.environ["PROJECT"]
|
9 |
+
wandb_api_key = "" #os.environ["WANDB_API_KEY"]
|
10 |
|
11 |
config = {
|
12 |
"model": "text-bison@001",
|
|
|
37 |
return completion
|
38 |
|
39 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://cloud.google.com/vertex-ai?hl=en/'>Google Vertex AI</a> API
|
40 |
+
with Bison foundation model. Model performance evaluation via <a href='https://wandb.ai/bstraehle'>Weights & Biases</a>.
|
41 |
+
Note: Credentials are commented out in this HF space."""
|
42 |
|
43 |
gr.close_all()
|
44 |
demo = gr.Interface(fn=invoke,
|