Spaces:
Runtime error
Runtime error
try getting creds as json
Browse files71 unmodified lines7273747576777879136 unmodified lines21621721821922022122271 unmodified linestemp.write(creds_json_str) # write in json formattemp_filename = temp.namereturn temp_filename# passos.environ["GOOGLE_APPLICATION_CREDENTIALS"]= get_credentials()# pick a random challengedef get_challenge():136 unmodified linesgr.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")#instructionswith gr.Accordion("Instructions & Tips",label="instructions",open=False):71 unmodified lines727374757677787980818283136 unmodified lines22022122222322422522671 unmodified linestemp.write(creds_json_str) # write in json formattemp_filename = temp.namereturn temp_filenamedef get_creds_json():creds_json_str = os.getenv("IMAGEN")return json.loads(creds_json_str)# passos.environ["GOOGLE_APPLICATION_CREDENTIALS"]= get_creds_json()# pick a random challengedef get_challenge():136 unmodified linesgr.Markdown("# <center>Prompt de Resistance Vertex Imagen</center>")pw = gr.Textbox(label="Password", type="password", placeholder="Enter the password to unlock the service")#instructionswith gr.Accordion("Instructions & Tips",label="instructions",open=False):
app.py+6-2