lastmass commited on
Commit
f730a4b
·
1 Parent(s): 3cbc5d0

add default key

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -294,7 +294,7 @@ with gr.Blocks(
294
  label="Nebius API Key",
295
  type="password",
296
  placeholder="Enter your Nebius API key",
297
- value=""
298
  )
299
 
300
  # 图片上传
@@ -339,14 +339,14 @@ with gr.Blocks(
339
  with gr.Column():
340
  gr.Markdown("#### 📸 Image Analysis Tool")
341
  img_tool = gr.Image(type="pil", label="Image")
342
- nebius_key_tool = gr.Textbox(label="Nebius API Key", type="password")
343
  analyze_btn = gr.Button("Analyze Image")
344
  analysis_result = gr.Textbox(label="Analysis Result", lines=5)
345
 
346
  with gr.Column():
347
  gr.Markdown("#### 💻 Code Generation Tool")
348
  desc_input = gr.Textbox(label="Description", lines=3)
349
- nebius_key_tool2 = gr.Textbox(label="Nebius API Key", type="password")
350
  code_btn = gr.Button("Generate Code")
351
  code_result = gr.Code(label="Generated Code", language="html")
352
 
 
294
  label="Nebius API Key",
295
  type="password",
296
  placeholder="Enter your Nebius API key",
297
+ value=DEFAULT_NEBIUS_API_KEY
298
  )
299
 
300
  # 图片上传
 
339
  with gr.Column():
340
  gr.Markdown("#### 📸 Image Analysis Tool")
341
  img_tool = gr.Image(type="pil", label="Image")
342
+ nebius_key_tool = gr.Textbox(label="Nebius API Key", type="password", value=DEFAULT_NEBIUS_API_KEY)
343
  analyze_btn = gr.Button("Analyze Image")
344
  analysis_result = gr.Textbox(label="Analysis Result", lines=5)
345
 
346
  with gr.Column():
347
  gr.Markdown("#### 💻 Code Generation Tool")
348
  desc_input = gr.Textbox(label="Description", lines=3)
349
+ nebius_key_tool2 = gr.Textbox(label="Nebius API Key", type="password", value=DEFAULT_NEBIUS_API_KEY)
350
  code_btn = gr.Button("Generate Code")
351
  code_result = gr.Code(label="Generated Code", language="html")
352