TIMBOVILL commited on
Commit
04240c7
1 Parent(s): 5a9b61d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -73,7 +73,7 @@ additional_inputs = [
73
  gr.Number(precision=0, value=42, label="Seed", info="A starting point to initiate generation, use 0 for random")
74
  ]
75
 
76
- chat_interface = gr.ChatInterface(
77
  fn=generate_response,
78
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
79
  additional_inputs=additional_inputs,
@@ -87,7 +87,7 @@ def process_video_interface():
87
 
88
  def process_video_callback(text):
89
  output_path = process_video(text)
90
- video_output.value = output_path
91
 
92
  return gr.Interface(
93
  fn=process_video_callback,
@@ -98,7 +98,8 @@ def process_video_interface():
98
  )
99
 
100
  demo = gr.Interface(
101
- [chat_interface, process_video_interface()],
 
102
  title="YTSHorts Maker",
103
  description="Powered by GROQ, MoviePy, and other tools.",
104
  theme="soft",
 
73
  gr.Number(precision=0, value=42, label="Seed", info="A starting point to initiate generation, use 0 for random")
74
  ]
75
 
76
+ chat_interface = gr.Interface(
77
  fn=generate_response,
78
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
79
  additional_inputs=additional_inputs,
 
87
 
88
  def process_video_callback(text):
89
  output_path = process_video(text)
90
+ return output_path # Return the output path directly
91
 
92
  return gr.Interface(
93
  fn=process_video_callback,
 
98
  )
99
 
100
  demo = gr.Interface(
101
+ fn=None, # No main function needed for multi-interface setup
102
+ interfaces=[chat_interface, process_video_interface()],
103
  title="YTSHorts Maker",
104
  description="Powered by GROQ, MoviePy, and other tools.",
105
  theme="soft",