Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -244,7 +244,7 @@ init_database()
|
|
| 244 |
def search_science_breakthroughs(query: str) -> str:
|
| 245 |
"""Search for recent scientific breakthroughs."""
|
| 246 |
try:
|
| 247 |
-
search = TavilySearchResults(max_results=10, include_domains=["sciencedaily.com", "nature.com", "science.org"], search_depth="advanced")
|
| 248 |
results = search.invoke(query)
|
| 249 |
return json.dumps(results, indent=2)
|
| 250 |
except Exception as e:
|
|
@@ -1192,7 +1192,13 @@ with gr.Blocks(css=css, title="Tuesday Trivia Agent", theme=gr.themes.Soft()) as
|
|
| 1192 |
)
|
| 1193 |
|
| 1194 |
copy_btn = gr.Button("📋 Copy Final Post", variant="secondary", visible=False)
|
| 1195 |
-
copy_output = gr.Textbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1196 |
|
| 1197 |
with gr.Accordion("☁️ Cloud Sync Status", open=False):
|
| 1198 |
sync_status = gr.Markdown(f"""
|
|
|
|
| 244 |
def search_science_breakthroughs(query: str) -> str:
|
| 245 |
"""Search for recent scientific breakthroughs."""
|
| 246 |
try:
|
| 247 |
+
search = TavilySearchResults(max_results=10, include_domains=["sciencedaily.com", "nature.com", "science.org","technologyreview.com"], search_depth="advanced")
|
| 248 |
results = search.invoke(query)
|
| 249 |
return json.dumps(results, indent=2)
|
| 250 |
except Exception as e:
|
|
|
|
| 1192 |
)
|
| 1193 |
|
| 1194 |
copy_btn = gr.Button("📋 Copy Final Post", variant="secondary", visible=False)
|
| 1195 |
+
copy_output = gr.Textbox(
|
| 1196 |
+
label="Post Content",
|
| 1197 |
+
visible=False,
|
| 1198 |
+
lines=10,
|
| 1199 |
+
show_copy_button=True, # <--- Adds the copy icon
|
| 1200 |
+
interactive=False # <--- Makes it read-only
|
| 1201 |
+
)
|
| 1202 |
|
| 1203 |
with gr.Accordion("☁️ Cloud Sync Status", open=False):
|
| 1204 |
sync_status = gr.Markdown(f"""
|