seawolf2357 commited on
Commit
7b7a227
·
verified ·
1 Parent(s): 417b22d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -603,6 +603,7 @@ examples = [
603
 
604
 
605
 
 
606
  ##############################################################################
607
  # Custom CSS similar to second example (colorful background, panel, etc.)
608
  ##############################################################################
@@ -746,12 +747,10 @@ with gr.Blocks(css=css, title="Vidraft-Gemma-3-27B") as demo:
746
  with gr.Row(elem_id="examples_row"):
747
  with gr.Column(scale=12, elem_id="examples_container"):
748
  gr.Markdown("### Example Inputs (click to load)")
749
- # We attach the same examples again at the bottom for a visual layout
750
- # But note that ChatInterface already has these examples.
751
- # Optionally, we could remove them here to avoid duplication:
752
  gr.Examples(
753
  examples=examples,
754
- inputs=chat,
755
  cache_examples=False
756
  )
757
 
@@ -759,3 +758,4 @@ with gr.Blocks(css=css, title="Vidraft-Gemma-3-27B") as demo:
759
  if __name__ == "__main__":
760
  demo.launch()
761
 
 
 
603
 
604
 
605
 
606
+
607
  ##############################################################################
608
  # Custom CSS similar to second example (colorful background, panel, etc.)
609
  ##############################################################################
 
747
  with gr.Row(elem_id="examples_row"):
748
  with gr.Column(scale=12, elem_id="examples_container"):
749
  gr.Markdown("### Example Inputs (click to load)")
750
+ # *** 수정 포인트: inputs=chat -> inputs=None 변경 ***
 
 
751
  gr.Examples(
752
  examples=examples,
753
+ inputs=None, # <-- 기존 inputs=chat 사용 시 에러 발생. None 처리로 수정.
754
  cache_examples=False
755
  )
756
 
 
758
  if __name__ == "__main__":
759
  demo.launch()
760
 
761
+