chansung commited on
Commit
046b1e3
1 Parent(s): fe50432

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+
4
+ gcp_credentials = os.getenv("GCP_CREDENTIALS")
5
+ with open("gcp-credentials.json", "w") as f:
6
+ f.write(gcp_credentials)
7
+
8
+ os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = './gcp-credentials.json'
9
+
10
+ with gr.Blocks() as demo:
11
+ gr.Markdown(gcp_credentials)
12
+
13
+ demo.launch()