Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: Replace undefined `api_choice` with `model_choice` in function calls
Browse files
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,
|
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,
|
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,
|