File size: 304 Bytes
046b1e3
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()