mitch commited on
Commit
534fbb3
·
unverified ·
1 Parent(s): d6e91f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -474,23 +474,27 @@ with gr.Blocks() as iface:
474
  with gr.Row():
475
  query_input = gr.Textbox(label="Your Question", placeholder="e.g., What is a convolutional neural network?")
476
  submit_button = gr.Button("Ask & Find Video")
 
 
477
  with gr.Row():
478
  video_output = gr.Video(label="Relevant Video Segment")
479
 
480
  submit_button.click(
481
  fn=process_query_and_get_video,
482
  inputs=query_input,
483
- outputs=video_output
484
  )
485
 
486
  gr.Examples(
487
  examples=[
488
- "Using only the videos, explain how ResNets work.",
489
- "Using only the videos, explain the advantages of CNNs over fully connected networks.",
490
- "Using only the videos, explain the the binary cross entropy loss function.",
 
 
491
  ],
492
  inputs=query_input,
493
- outputs= video_output,
494
  fn=process_query_and_get_video,
495
  cache_examples=False,
496
  )
 
474
  with gr.Row():
475
  query_input = gr.Textbox(label="Your Question", placeholder="e.g., What is a convolutional neural network?")
476
  submit_button = gr.Button("Ask & Find Video")
477
+ with gr.Row():
478
+ reasoning_output = gr.Markdown(label="LLM Reasoning")
479
  with gr.Row():
480
  video_output = gr.Video(label="Relevant Video Segment")
481
 
482
  submit_button.click(
483
  fn=process_query_and_get_video,
484
  inputs=query_input,
485
+ outputs=[reasoning_output, video_output]
486
  )
487
 
488
  gr.Examples(
489
  examples=[
490
+ "What are activation functions?",
491
+ "Explain backpropagation.",
492
+ "What is transfer learning?",
493
+ "Show me an example of data augmentation.",
494
+ "What is the difference between classification and regression?",
495
  ],
496
  inputs=query_input,
497
+ outputs=[reasoning_output, video_output],
498
  fn=process_query_and_get_video,
499
  cache_examples=False,
500
  )