Spaces:
Paused
Paused
Create app.py
Browse files
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()
|