Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -224,6 +224,7 @@ def get_summary(tech_sources, business_sources, science_sources, world_sources,
|
|
224 |
logger.error(f"Error in get_summary: {str(e)}")
|
225 |
return f"An error occurred while processing your request: {str(e)}"
|
226 |
|
|
|
227 |
# Gradio Interface
|
228 |
demo = gr.Blocks()
|
229 |
|
@@ -273,10 +274,10 @@ with demo:
|
|
273 |
model_selector = gr.Radio(
|
274 |
choices=list(SUMMARIZER_MODELS.keys()),
|
275 |
label="Choose Summarization Model",
|
276 |
-
value="OpenRouter (Claude-3)"
|
277 |
)
|
278 |
|
279 |
-
|
280 |
summary_output = gr.HTML(label="News Summary") # Changed from gr.Textbox to gr.HTML
|
281 |
|
282 |
summarize_button.click(
|
|
|
224 |
logger.error(f"Error in get_summary: {str(e)}")
|
225 |
return f"An error occurred while processing your request: {str(e)}"
|
226 |
|
227 |
+
# Gradio Interface
|
228 |
# Gradio Interface
|
229 |
demo = gr.Blocks()
|
230 |
|
|
|
274 |
model_selector = gr.Radio(
|
275 |
choices=list(SUMMARIZER_MODELS.keys()),
|
276 |
label="Choose Summarization Model",
|
277 |
+
value="OpenRouter (Claude-3)"
|
278 |
)
|
279 |
|
280 |
+
summarize_button = gr.Button("Get News Summary")
|
281 |
summary_output = gr.HTML(label="News Summary") # Changed from gr.Textbox to gr.HTML
|
282 |
|
283 |
summarize_button.click(
|