Lesterchia174 commited on
Commit
5e0cf29
·
verified ·
1 Parent(s): 8f6c6b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -29,7 +29,7 @@ LANGUAGE_CODES = {
29
 
30
  # Available LLM models
31
  AVAILABLE_MODELS = {
32
- "DeepSeek Qwen 32B": "deepseek-r1-distill-Qwen-32b",
33
  "Llama-4 Maverick 17B": "meta-llama/llama-4-maverick-17b-128e-instruct"
34
  }
35
 
@@ -53,7 +53,7 @@ def translate_text(input_text, input_lang, output_langs, model_name):
53
 
54
  try:
55
  # Get the actual model ID from our dictionary
56
- model_id = AVAILABLE_MODELS.get(model_name, "deepseek-r1-distill-Qwen-32b")
57
 
58
  # Using a more direct instruction to avoid exposing the thinking process
59
  system_prompt = """You are a translation assistant that provides direct, accurate translations.
@@ -239,7 +239,7 @@ with gr.Blocks() as demo:
239
  with gr.Row():
240
  model_selector = gr.Dropdown(
241
  choices=list(AVAILABLE_MODELS.keys()),
242
- value="DeepSeek Qwen 32B",
243
  label="Translation Model"
244
  )
245
 
 
29
 
30
  # Available LLM models
31
  AVAILABLE_MODELS = {
32
+ "DeepSeek-R1 Qwen 32B": "deepseek-r1-distill-Qwen-32b",
33
  "Llama-4 Maverick 17B": "meta-llama/llama-4-maverick-17b-128e-instruct"
34
  }
35
 
 
53
 
54
  try:
55
  # Get the actual model ID from our dictionary
56
+ model_id = AVAILABLE_MODELS.get(model_name, "meta-llama/llama-4-maverick-17b-128e-instruct")
57
 
58
  # Using a more direct instruction to avoid exposing the thinking process
59
  system_prompt = """You are a translation assistant that provides direct, accurate translations.
 
239
  with gr.Row():
240
  model_selector = gr.Dropdown(
241
  choices=list(AVAILABLE_MODELS.keys()),
242
+ value="Llama-4 Maverick 17B",
243
  label="Translation Model"
244
  )
245