Spaces:
Running
Running
Ashmi Banerjee
commited on
Commit
•
ec79175
1
Parent(s):
cd64026
update
Browse files- app.py +1 -1
- src/text_generation/vertexai_setup.py +1 -1
app.py
CHANGED
@@ -16,8 +16,8 @@ def create_ui():
|
|
16 |
|
17 |
# Create the Gradio HTML component
|
18 |
html_content = load_html_from_file(html_file_path)
|
19 |
-
with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.green, secondary_hue=gr.themes.colors.blue)) as app:
|
20 |
|
|
|
21 |
gr.HTML(html_content)
|
22 |
country, starting_point, query, sustainable, model = main_component()
|
23 |
output = gr.Textbox(label="Generated Results", lines=4)
|
|
|
16 |
|
17 |
# Create the Gradio HTML component
|
18 |
html_content = load_html_from_file(html_file_path)
|
|
|
19 |
|
20 |
+
with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.green, secondary_hue=gr.themes.colors.blue)) as app:
|
21 |
gr.HTML(html_content)
|
22 |
country, starting_point, query, sustainable, model = main_component()
|
23 |
output = gr.Textbox(label="Generated Results", lines=4)
|
src/text_generation/vertexai_setup.py
CHANGED
@@ -25,7 +25,7 @@ def decode_service_key():
|
|
25 |
|
26 |
|
27 |
def initialize_vertexai_params(location: Optional[str] = "us-central1"):
|
28 |
-
creds_file_name = "
|
29 |
print(creds_file_name)
|
30 |
if not os.path.exists(os.path.dirname(creds_file_name)):
|
31 |
credentials = decode_service_key()
|
|
|
25 |
|
26 |
|
27 |
def initialize_vertexai_params(location: Optional[str] = "us-central1"):
|
28 |
+
creds_file_name = ".config/gcp_default_credentials.json"
|
29 |
print(creds_file_name)
|
30 |
if not os.path.exists(os.path.dirname(creds_file_name)):
|
31 |
credentials = decode_service_key()
|