vid2persona / app.py
chansung's picture
Update app.py
aa6670d verified
raw
history blame
396 Bytes
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()