Skip to content

Commit

Permalink
Fix quiz inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliaElv committed Nov 22, 2024
1 parent 9bb7a59 commit ea07f11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chapters/en/chapter10/7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,25 @@ Let's test what you learned in this chapter!
<Question
choices={[
{
text: "You need to be connected to your Argilla server: `client= rg.Argilla(api_url='...', api_key='...')`",
text: "You need to be connected to your Argilla server: <code>client= rg.Argilla(api_url='...', api_key='...')</code>",
explain: "Yes, to interact with your server you'll need to instantiate it first.",
correct: true
},
{
text: "Import the dataset from the hub: `dataset = rg.Dataset.from_hub(repo_id='argilla/ag_news_annotated')`",
text: "Import the dataset from the hub: <code>dataset = rg.Dataset.from_hub(repo_id='argilla/ag_news_annotated')</code>",
explain: "No. This is to import a dataset from the Hub into your Argilla instance.",
},
{
text: "Load the dataset: `dataset = client.datasets(name='my_dataset')`",
text: "Load the dataset: <code>dataset = client.datasets(name='my_dataset')</code>",
explain: "Yes, you'll need this for further operations",
correct: true
},
{
text: "Convert the Argilla dataset into a Datasets dataset: `dataset = dataset.to_datasets()`",
text: "Convert the Argilla dataset into a Datasets dataset: <code>dataset = dataset.to_datasets()</code>",
explain: "This is not needed if you export the full dataset. Argilla will take care of this for you. However, you might need it if you're working with a subset of records."
},
{
text: "Use the `to_hub` method to export the dataset: `dataset.to_hub(repo_id='my_username/dataset_name')`",
text: "Use the </code>to_hub</code> method to export the dataset: <code>dataset.to_hub(repo_id='my_username/dataset_name')</code>",
explain: "This will push the dataset to the indicated repo id, and create a new repo if it doesn't exist.",
correct: true
},
Expand Down

0 comments on commit ea07f11

Please sign in to comment.