Spaces:
Paused
Paused
File size: 396 Bytes
046b1e3 aa6670d 046b1e3 09f7ad0 046b1e3 8e1a142 046b1e3 09f7ad0 046b1e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import os
import gradio as gr
import google.auth
gcp_credentials = os.getenv("GCP_CREDENTIALS")
with open("gcp-credentials.json", "w") as f:
f.write(gcp_credentials)
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = './gcp-credentials.json'
credentials, project_id = google.auth.default()
print(credentials)
print(project_id)
with gr.Blocks() as demo:
gr.Markdown("")
demo.launch()
|