victor HF staff commited on
Commit
dba4524
·
1 Parent(s): b1846f7

fix: Replace undefined `api_choice` with `model_choice` in function calls

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,7 +211,7 @@ def update(files, prompt, top_p=1, temperature=1, model_choice="Qwen/Qwen2.5-Cod
211
  while attempts < 2:
212
  print("ATTEMPT", attempts)
213
  try:
214
- command_string = get_completion(prompt, files_info, top_p, temperature, api_choice)
215
  print(
216
  f"""///PROMTP {prompt} \n\n/// START OF COMMAND ///:\n\n{command_string}\n\n/// END OF COMMAND ///\n\n"""
217
  )
@@ -393,7 +393,7 @@ with gr.Blocks() as demo:
393
  "deepseek-ai/DeepSeek-V3-Base",
394
  ],
395
  ],
396
- inputs=[user_files, user_prompt, top_p, temperature, api_choice],
397
  outputs=[generated_video, generated_command],
398
  fn=update,
399
  run_on_click=True,
 
211
  while attempts < 2:
212
  print("ATTEMPT", attempts)
213
  try:
214
+ command_string = get_completion(prompt, files_info, top_p, temperature, model_choice)
215
  print(
216
  f"""///PROMTP {prompt} \n\n/// START OF COMMAND ///:\n\n{command_string}\n\n/// END OF COMMAND ///\n\n"""
217
  )
 
393
  "deepseek-ai/DeepSeek-V3-Base",
394
  ],
395
  ],
396
+ inputs=[user_files, user_prompt, top_p, temperature, model_choice],
397
  outputs=[generated_video, generated_command],
398
  fn=update,
399
  run_on_click=True,