Spaces:
Runtime error
Runtime error
try getting creds as json
Browse files71 unmodified lines72737475767778797680818283136 unmodified lines22022122221922322422522671 unmodified lines temp.write(creds_json_str) # write in json format temp_filename = temp.name return temp_filenamedef get_creds_json(): creds_json_str = os.getenv("IMAGEN") return json.loads(creds_json_str)
# passos.environ["GOOGLE_APPLICATION_CREDENTIALS"]= get_credentials()os.environ["GOOGLE_APPLICATION_CREDENTIALS"]= get_creds_json()
# pick a random challengedef get_challenge():136 unmodified lines
gr.Markdown("# <center>Prompt de Resistance Vertex Imagen</center>")
pw = gr.Textbox(label="Password", type="password", placeholder="Enter the password to unlock the service", value="REBEL.pier6moment") pw = gr.Textbox(label="Password", type="password", placeholder="Enter the password to unlock the service")
#instructions with gr.Accordion("Instructions & Tips",label="instructions",open=False):app.py+6-2