Views
No views yet
1{
2 "inputs": "Patient presents with fever and cough. What are potential diagnoses?"
3}1{
2 "inputs": "Patient presents with fever and cough. What are potential diagnoses?",
3 "parameters": {
4 "max_new_tokens": 512,
5 "temperature": 0.7,
6 "top_p": 0.9,
7 "do_sample": true,
8 "repetition_penalty": 1.1
9 }
10}1[
2 {
3 "generated_text": "Based on the symptoms of fever and cough, potential diagnoses include..."
4 }
5]sadisylarq/gemma-2-9b-customdx24-gemma-2-9bus-east-1nvidia-a10g (recommended) or nvidia-l4011800 seconds1import requests
2
3API_URL = "https://your-endpoint-url.aws.endpoints.huggingface.cloud"
4headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
5
6data = {
7 "inputs": "Patient presents with fever and cough. Provide diagnosis.",
8 "parameters": {
9 "max_new_tokens": 256,
10 "temperature": 0.7
11 }
12}
13
14response = requests.post(API_URL, headers=headers, json=data)
15print(response.json())