osanseviero commited on
Commit
16539be
β€’
1 Parent(s): cf1a53b

Upload Mistral_7B.ipynb

Browse files
Files changed (1) hide show
  1. Mistral_7B.ipynb +1 -3
Mistral_7B.ipynb CHANGED
@@ -97,7 +97,7 @@
97
  " --header \"Content-Type: application/json\" \\\n",
98
  "\t-X POST \\\n",
99
  "\t-d '{\"inputs\": \"Explain ML as a pirate\", \"parameters\": {\"max_new_tokens\": 50}}' \\\n",
100
- "\t-H \"Authorization: Bearer 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\""
101
  ]
102
  },
103
  {
@@ -133,8 +133,6 @@
133
  "source": [
134
  "from huggingface_hub import InferenceClient\n",
135
  "\n",
136
- "API_URL = \"https://api-inference.huggingface.co/models/\"\n",
137
- "\n",
138
  "client = InferenceClient(\n",
139
  " \"mistralai/Mistral-7B-Instruct-v0.1\"\n",
140
  ")\n",
 
97
  " --header \"Content-Type: application/json\" \\\n",
98
  "\t-X POST \\\n",
99
  "\t-d '{\"inputs\": \"Explain ML as a pirate\", \"parameters\": {\"max_new_tokens\": 50}}' \\\n",
100
+ "\t-H \"Authorization: Bearer API_TOKEN\""
101
  ]
102
  },
103
  {
 
133
  "source": [
134
  "from huggingface_hub import InferenceClient\n",
135
  "\n",
 
 
136
  "client = InferenceClient(\n",
137
  " \"mistralai/Mistral-7B-Instruct-v0.1\"\n",
138
  ")\n",