Spaces:
Runtime error
Runtime error
MEOW commited on
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -42,7 +42,7 @@ def is_graph(image_content):
|
|
| 42 |
def process_graph(image_content):
|
| 43 |
"""Process a graph image and generate a description."""
|
| 44 |
deplot_description = process_graph_deplot(image_content)
|
| 45 |
-
mixtral = NVIDIA(model_name="meta/llama-3.1-
|
| 46 |
response = mixtral.complete("Your responsibility is to explain charts. You are an expert in describing the responses of linearized tables into plain English text for LLMs to use. Explain the following linearized table. " + deplot_description)
|
| 47 |
return response.text
|
| 48 |
|
|
|
|
| 42 |
def process_graph(image_content):
|
| 43 |
"""Process a graph image and generate a description."""
|
| 44 |
deplot_description = process_graph_deplot(image_content)
|
| 45 |
+
mixtral = NVIDIA(model_name="meta/llama-3.1-8b-instruct")
|
| 46 |
response = mixtral.complete("Your responsibility is to explain charts. You are an expert in describing the responses of linearized tables into plain English text for LLMs to use. Explain the following linearized table. " + deplot_description)
|
| 47 |
return response.text
|
| 48 |
|