Spaces:
Sleeping
Sleeping
@panditu1 commited on
Commit ·
d6e6e63
1
Parent(s): 8a2bbb5
hsdlkjf
Browse files10 unmodified lines1112131415161710 unmodified lines# API-based Model (Zephyr 7B - High Quality, runs on remote server)# Use the environment variable from your Hugging Face Space secretapi_token = os.environ.get("HF")api_client = InferenceClient("HuggingFaceH4/zephyr-7b-beta", token=api_token)# --- Single Prediction Function ---def get_translation(simple_text, model_choice, temperature):10 unmodified lines111213141516171810 unmodified lines# API-based Model (Zephyr 7B - High Quality, runs on remote server)# Use the environment variable from your Hugging Face Space secretapi_token = os.environ.get("HF")api_client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2", token=api_token)# --- Single Prediction Function ---def get_translation(simple_text, model_choice, temperature):
app.py+2-1