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 lines1011121314151656 unmodified lines737475757677787980819 unmodified lines# Initialize the inference clientclient = InferenceClient( api_key=os.getenv("HF_TOKEN"), # Make sure to set this environment variable base_url="https://router.huggingface.co", #updated base URL for the new inference API)
# Load questions from Hugging Face dataset56 unmodified lines 3. 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. 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 lines8910111112137 unmodified lines "black>=25.1.0", "datasets>=3.2.0", "gradio[oauth]==5.15.0", "huggingface-hub>=0.28.0", "huggingface-hub>=0.31.0", "ipykernel>=6.29.5",]33 unmodified lines343536373738394033 unmodified linesh11==0.14.0httpcore==1.0.7httpx==0.28.1huggingface-hub==0.28.1huggingface-hub>=0.31.0idna==3.10ipykernel==6.29.5ipython==8.32.0app.py+3-1
pyproject.toml+1-1
requirements.txt+1-1