Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,6 +252,7 @@ def o3_chat(api_key, base_url, question, image):
|
|
| 252 |
|
| 253 |
# 评估单个数据点
|
| 254 |
messages = evaluate_single_data(data, client, executor, prompt_template, prompt_type)
|
|
|
|
| 255 |
html_output = process_message(messages)
|
| 256 |
return html_output
|
| 257 |
|
|
@@ -269,8 +270,8 @@ def create_demo():
|
|
| 269 |
question = gr.Textbox(label="Question", placeholder="Ask a question about the image...")
|
| 270 |
submit_btn = gr.Button("Submit")
|
| 271 |
|
| 272 |
-
|
| 273 |
-
|
| 274 |
|
| 275 |
submit_btn.click(
|
| 276 |
fn=o3_chat,
|
|
|
|
| 252 |
|
| 253 |
# 评估单个数据点
|
| 254 |
messages = evaluate_single_data(data, client, executor, prompt_template, prompt_type)
|
| 255 |
+
print(messages)
|
| 256 |
html_output = process_message(messages)
|
| 257 |
return html_output
|
| 258 |
|
|
|
|
| 270 |
question = gr.Textbox(label="Question", placeholder="Ask a question about the image...")
|
| 271 |
submit_btn = gr.Button("Submit")
|
| 272 |
|
| 273 |
+
with gr.Row():
|
| 274 |
+
output = gr.HTML(label="Response")
|
| 275 |
|
| 276 |
submit_btn.click(
|
| 277 |
fn=o3_chat,
|