Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ def summarize_articles(articles):
|
|
135 |
|
136 |
if summary:
|
137 |
summaries.append(f"""
|
138 |
-
|
139 |
|
140 |
- π Category: {category}
|
141 |
- π‘ Source: {source}
|
@@ -143,8 +143,7 @@ def summarize_articles(articles):
|
|
143 |
|
144 |
π Summary:
|
145 |
{summary}
|
146 |
-
|
147 |
-
π Read the full article here ({link})
|
148 |
|
149 |
---
|
150 |
""")
|
@@ -184,7 +183,7 @@ def generate_user_summary(name):
|
|
184 |
demo = gr.Blocks()
|
185 |
|
186 |
with demo:
|
187 |
-
gr.Markdown("
|
188 |
|
189 |
with gr.Tab("Set Preferences"):
|
190 |
name_input = gr.Textbox(label="Your Name")
|
|
|
135 |
|
136 |
if summary:
|
137 |
summaries.append(f"""
|
138 |
+
π° {title}
|
139 |
|
140 |
- π Category: {category}
|
141 |
- π‘ Source: {source}
|
|
|
143 |
|
144 |
π Summary:
|
145 |
{summary}
|
146 |
+
π Read the full article here ({link})
|
|
|
147 |
|
148 |
---
|
149 |
""")
|
|
|
183 |
demo = gr.Blocks()
|
184 |
|
185 |
with demo:
|
186 |
+
gr.Markdown("π° AI News Summarizer")
|
187 |
|
188 |
with gr.Tab("Set Preferences"):
|
189 |
name_input = gr.Textbox(label="Your Name")
|