lance.qiu commited on
Commit
8773e95
·
1 Parent(s): 6b1fc7f

修改名称

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -206,9 +206,9 @@ def generate_reason(caption, dimension, score):
206
  return "".join(reasons.get(dimension, reasons["颜值分"]))
207
 
208
  # -------------------------- Gradio界面 --------------------------
209
- with gr.Blocks(title="照片打分工具", theme=gr.themes.Soft()) as demo:
210
- gr.Markdown("# 📸 AI照片打分工具")
211
- gr.Markdown("上传照片,选择打分者性格,由模型自动描述和多维度打分")
212
 
213
  with gr.Row():
214
  with gr.Column(scale=1):
@@ -221,13 +221,13 @@ with gr.Blocks(title="照片打分工具", theme=gr.themes.Soft()) as demo:
221
  "电影角色:钢铁侠",
222
  "卡通角色:小黄人",
223
  ],
224
- label="打分者性格/角色", value="中立专业的评审"
225
  )
226
- submit_btn = gr.Button("开始打分", variant="primary")
227
 
228
  with gr.Column(scale=1):
229
- score_output = gr.Textbox(label="总体评分", placeholder="等待打分...")
230
- reason_output = gr.Textbox(label="详细评价(含各维度)", placeholder="等待生成...", lines=10)
231
 
232
  submit_btn.click(
233
  fn=score_photo,
 
206
  return "".join(reasons.get(dimension, reasons["颜值分"]))
207
 
208
  # -------------------------- Gradio界面 --------------------------
209
+ with gr.Blocks(title="照片解读 Photo Insights", theme=gr.themes.Soft()) as demo:
210
+ gr.Markdown("# 📸 照片解读 Photo Insights")
211
+ gr.Markdown("上传照片,选择解读者性格,由AI自动描述和多维度解读")
212
 
213
  with gr.Row():
214
  with gr.Column(scale=1):
 
221
  "电影角色:钢铁侠",
222
  "卡通角色:小黄人",
223
  ],
224
+ label="解读者性格/角色", value="中立专业的评审"
225
  )
226
+ submit_btn = gr.Button("开始解读", variant="primary")
227
 
228
  with gr.Column(scale=1):
229
+ score_output = gr.Textbox(label="综合评价", placeholder="等待解读...")
230
+ reason_output = gr.Textbox(label="详细解读(含各维度)", placeholder="等待生成...", lines=10)
231
 
232
  submit_btn.click(
233
  fn=score_photo,