smartdigitalnetworks commited on
Commit
75784f6
·
verified ·
1 Parent(s): 2171717

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -664,7 +664,6 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
664
  """,
665
  elem_id="header",
666
  )
667
-
668
  with gr.Row():
669
  with gr.Column():
670
  user_prompt = gr.Textbox(
@@ -719,7 +718,6 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
719
  inputs=[user_files, user_prompt, top_p, temperature, model_choice],
720
  outputs=[generated_command, generated_video],
721
  )
722
-
723
  with gr.Row():
724
  gr.Examples(
725
  examples=[
@@ -767,10 +765,10 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
767
  list(MODELS.keys())[0],
768
  ],
769
  ],
770
- inputs=[user_files, user_prompt, top_p, temperature, model_choice],
771
- outputs=[generated_command, generated_video],
772
- fn=update, # Required to cache examples
773
- cache_examples=False, # Set to True if you want to pre-process
774
  )
775
 
776
  with gr.Row():
@@ -781,4 +779,4 @@ mcp_interface.queue(default_concurrency_limit=20)
781
 
782
  # Launch main demo
783
  demo.queue(default_concurrency_limit=20)
784
- demo.launch(show_api=False, ssr_mode=False, mcp_server=False)
 
664
  """,
665
  elem_id="header",
666
  )
 
667
  with gr.Row():
668
  with gr.Column():
669
  user_prompt = gr.Textbox(
 
718
  inputs=[user_files, user_prompt, top_p, temperature, model_choice],
719
  outputs=[generated_command, generated_video],
720
  )
 
721
  with gr.Row():
722
  gr.Examples(
723
  examples=[
 
765
  list(MODELS.keys())[0],
766
  ],
767
  ],
768
+ inputs=[user_files, user_prompt, top_p, temperature, model_choice],
769
+ outputs=[generated_command, generated_video],
770
+ fn=update, # Required to cache examples
771
+ cache_examples=False, # Set to True if you want to pre-process
772
  )
773
 
774
  with gr.Row():
 
779
 
780
  # Launch main demo
781
  demo.queue(default_concurrency_limit=20)
782
+ demo.launch(show_api=False, ssr_mode=False, mcp_server=True)