When set use_markdown=True to rg.TextField, corresponding records will be displayed twice on the page. The first one is rendered and the second is raw text.
To Reproduce
Here is a short code snippet to reproduce the bug.
import argilla as rg
client = rg.Argilla(
api_url="<api_url>", api_key="<api_key>")
settings = rg.Settings(
guidelines="These are some guidelines.",
fields=[
rg.TextField(
name="text", title="text", use_markdown=True
),
],
questions=[
rg.LabelQuestion(
name="label",
labels=["label_1", "label_2", "label_3"]
),
],
metadata=[
rg.TermsMetadataProperty(
name="id",
)
]
)
dataset = rg.Dataset(
name="sample_dataset_0",
workspace="sft",
settings=settings,
)
dataset.create()
dataset = client.datasets(name="sample_dataset_0")
records = [
rg.Record(
fields={
"text": "Do you need **oxygen** to breathe?",
},
metadata={"id": "0"},
),
rg.Record(
fields={
"text": "What is the boiling point of water?",
},
metadata={"id": "1"},
),
]
dataset.records.log(records)
Expected behavior
When using markdown, content should only be displayed once, rendered.
Screenshots
Environment (please complete the following information):
Describe the bug
When set
use_markdown=True
torg.TextField
, corresponding records will be displayed twice on the page. The first one is rendered and the second is raw text.To Reproduce
Here is a short code snippet to reproduce the bug.
Expected behavior
When using markdown, content should only be displayed once, rendered.
Screenshots
Environment (please complete the following information):