Update README.md
Browse files
README.md
CHANGED
|
@@ -77,8 +77,8 @@ Each question entry is arranged as:
|
|
| 77 |
Each question is built as:
|
| 78 |
|
| 79 |
```
|
| 80 |
-
image_input:
|
| 81 |
-
text_iunput:
|
| 82 |
```
|
| 83 |
|
| 84 |
# Evaluate
|
|
@@ -106,10 +106,11 @@ for query in tqdm(queries):
|
|
| 106 |
query_idx = query["question_id"]
|
| 107 |
question_text = build_question(query)
|
| 108 |
chart_figure = query["url"] # This should be a list of url
|
| 109 |
-
|
| 110 |
-
|
|
|
|
| 111 |
# Replace with your model
|
| 112 |
-
response = model.generate(question_text, chart_figure
|
| 113 |
|
| 114 |
|
| 115 |
Responses[query_idx] = {
|
|
|
|
| 77 |
Each question is built as:
|
| 78 |
|
| 79 |
```
|
| 80 |
+
image_input: url (may need to download for models that don't support url input)
|
| 81 |
+
text_iunput: question + instructions (if any)
|
| 82 |
```
|
| 83 |
|
| 84 |
# Evaluate
|
|
|
|
| 106 |
query_idx = query["question_id"]
|
| 107 |
question_text = build_question(query)
|
| 108 |
chart_figure = query["url"] # This should be a list of url
|
| 109 |
+
"""
|
| 110 |
+
Note that for models that do not support url input, you may need to download images first.
|
| 111 |
+
"""
|
| 112 |
# Replace with your model
|
| 113 |
+
response = model.generate(question_text, chart_figure)
|
| 114 |
|
| 115 |
|
| 116 |
Responses[query_idx] = {
|