bstraehle commited on
Commit
30cd8f6
·
1 Parent(s): 4b026d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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,