Fix for api endpoint
#2
by Hammad6271 - opened
Files changed (3)
- app.py+3-1
- pyproject.toml+1-1
- requirements.txt+1-1
9 unmodified lines10111213141556 unmodified lines72737475767778799 unmodified lines# Initialize the inference clientclient = InferenceClient(api_key=os.getenv("HF_TOKEN"), # Make sure to set this environment variable)# Load questions from Hugging Face dataset56 unmodified lines3. Does it follow the requirements of the challenge?4. Does it meet the assessment criteria?Respond with ONLY "CORRECT" or "INCORRECT" followed by a brief explanation."""messages = [{"role": "user", "content": prompt}]9 unmodified lines1011121314151656 unmodified lines7374757677787980819 unmodified lines# Initialize the inference clientclient = InferenceClient(api_key=os.getenv("HF_TOKEN"), # Make sure to set this environment variablebase_url="https://router.huggingface.co", #updated base URL for the new inference API)# Load questions from Hugging Face dataset56 unmodified lines3. Does it follow the requirements of the challenge?4. Does it meet the assessment criteria?Respond with ONLY "CORRECT" or "INCORRECT" followed by a brief explanation. Do not mention the "Student" rather mention it as "the solution" in your explanation."""#updated prompt to avoid mentioning "Student" and instead refer to "the solution" in the explanation, to make it more neutral.messages = [{"role": "user", "content": prompt}]
7 unmodified lines89101112137 unmodified lines"black>=25.1.0","datasets>=3.2.0","gradio[oauth]==5.15.0","huggingface-hub>=0.28.0","ipykernel>=6.29.5",]7 unmodified lines89101112137 unmodified lines"black>=25.1.0","datasets>=3.2.0","gradio[oauth]==5.15.0","huggingface-hub>=0.31.0","ipykernel>=6.29.5",]
33 unmodified lines3435363738394033 unmodified linesh11==0.14.0httpcore==1.0.7httpx==0.28.1huggingface-hub==0.28.1idna==3.10ipykernel==6.29.5ipython==8.32.033 unmodified lines3435363738394033 unmodified linesh11==0.14.0httpcore==1.0.7httpx==0.28.1huggingface-hub>=0.31.0idna==3.10ipykernel==6.29.5ipython==8.32.0
app.py+3-1
pyproject.toml+1-1
requirements.txt+1-1