openfree commited on
Commit
bcf4357
Β·
verified Β·
1 Parent(s): fb0ce3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -32
app.py CHANGED
@@ -576,38 +576,6 @@ def refresh_hn_stories():
576
  ])
577
 
578
  yield final_outputs
579
-
580
- # μ΅œμ’… μƒνƒœ μ—…λ°μ΄νŠΈ
581
- final_outputs = [gr.update(value=f"총 {len(processed_stories)}개의 ν¬μŠ€νŠΈκ°€ μ²˜λ¦¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€.", visible=True)]
582
-
583
- for idx, comp in enumerate(hn_article_components):
584
- if idx < len(processed_stories):
585
- story, summary = processed_stories[idx]
586
- final_outputs.extend([
587
- gr.update(visible=True),
588
- gr.update(value=f"### [{story.get('title', 'Untitled')}]({story.get('url', '#')})"),
589
- gr.update(value=f"""
590
- **μž‘μ„±μž:** {story.get('by', 'unknown')} |
591
- **μ‹œκ°„:** {format_hn_time(story.get('time', 0))} |
592
- **점수:** {story.get('score', 0)} |
593
- **λŒ“κΈ€:** {len(story.get('kids', []))}개\n
594
- **AI μš”μ•½:** {summary}
595
- """),
596
- gr.update(visible=True), # report_button
597
- gr.update(visible=False), # show_report
598
- gr.update(visible=False) # report_content
599
- ])
600
- else:
601
- final_outputs.extend([
602
- gr.update(visible=False),
603
- gr.update(),
604
- gr.update(),
605
- gr.update(visible=False),
606
- gr.update(visible=False),
607
- gr.update(visible=False)
608
- ])
609
-
610
- yield final_outputs
611
 
612
  def generate_report(title, info, progress=gr.Progress()):
613
  """λ¦¬ν¬νŒ… 생성"""
 
576
  ])
577
 
578
  yield final_outputs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
 
580
  def generate_report(title, info, progress=gr.Progress()):
581
  """λ¦¬ν¬νŒ… 생성"""