Zenith Wang commited on
Commit
3cf4e55
·
1 Parent(s): 139c357

简化界面,去掉多余说明和示例

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -156,8 +156,6 @@ def call_step_api(image, prompt, model, temperature=0.7, max_tokens=2000):
156
  with gr.Blocks(title="Step-3", theme=gr.themes.Soft()) as demo:
157
  gr.Markdown("""
158
  # 🤖 Step-3
159
-
160
- 上传图片并输入提示词,让 Step-3 分析图像内容。
161
  """)
162
 
163
  with gr.Row():
@@ -222,18 +220,6 @@ with gr.Blocks(title="Step-3", theme=gr.themes.Soft()) as demo:
222
  interactive=False
223
  )
224
 
225
- # 示例
226
- gr.Examples(
227
- examples=[
228
- ["这张图片中有什么?", "step-3"],
229
- ["详细描述图片内容", "step-3"],
230
- ["这是什么物体?有什么特征?", "step-3"],
231
- ["分析图片的主要元素", "step-3"],
232
- ],
233
- inputs=[prompt_input, model_select],
234
- label="示例提示词"
235
- )
236
-
237
  # 事件处理 - 流式输出到两个文本框
238
  submit_btn.click(
239
  fn=call_step_api,
 
156
  with gr.Blocks(title="Step-3", theme=gr.themes.Soft()) as demo:
157
  gr.Markdown("""
158
  # 🤖 Step-3
 
 
159
  """)
160
 
161
  with gr.Row():
 
220
  interactive=False
221
  )
222
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  # 事件处理 - 流式输出到两个文本框
224
  submit_btn.click(
225
  fn=call_step_api,