vid2persona / app.py
chansung's picture
Create app.py
046b1e3 verified
import os
import gradio as gr
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'
with gr.Blocks() as demo:
gr.Markdown(gcp_credentials)
demo.launch()