Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -213,18 +213,6 @@ def tavily_search(
|
|
213 |
color: #2c3e50;
|
214 |
margin-bottom: 10px;
|
215 |
}}
|
216 |
-
.json-container {{
|
217 |
-
background: #2d3748;
|
218 |
-
color: #e2e8f0;
|
219 |
-
padding: 20px;
|
220 |
-
border-radius: 8px;
|
221 |
-
overflow-x: auto;
|
222 |
-
font-family: 'Monaco', 'Consolas', monospace;
|
223 |
-
font-size: 12px;
|
224 |
-
line-height: 1.5;
|
225 |
-
max-height: 400px;
|
226 |
-
overflow-y: auto;
|
227 |
-
}}
|
228 |
.image-section {{
|
229 |
margin-top: 20px;
|
230 |
}}
|
@@ -306,7 +294,7 @@ def tavily_search(
|
|
306 |
</div>"""
|
307 |
html_result += "</div></div>"
|
308 |
|
309 |
-
# Add metadata
|
310 |
html_result += f"""
|
311 |
<div class="divider"></div>
|
312 |
<div class="metadata">
|
@@ -316,11 +304,6 @@ def tavily_search(
|
|
316 |
<div><strong>Search Depth:</strong> {search_depth}</div>
|
317 |
<div><strong>Topic:</strong> {topic}</div>
|
318 |
</div>
|
319 |
-
|
320 |
-
<div class="metadata">
|
321 |
-
<div class="metadata-title">📄 Raw JSON Response</div>
|
322 |
-
<div class="json-container">{json.dumps(result, indent=2).replace('<', '<').replace('>', '>')}</div>
|
323 |
-
</div>
|
324 |
</div>
|
325 |
</body>
|
326 |
</html>"""
|
|
|
213 |
color: #2c3e50;
|
214 |
margin-bottom: 10px;
|
215 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
.image-section {{
|
217 |
margin-top: 20px;
|
218 |
}}
|
|
|
294 |
</div>"""
|
295 |
html_result += "</div></div>"
|
296 |
|
297 |
+
# Add metadata (without Raw JSON section)
|
298 |
html_result += f"""
|
299 |
<div class="divider"></div>
|
300 |
<div class="metadata">
|
|
|
304 |
<div><strong>Search Depth:</strong> {search_depth}</div>
|
305 |
<div><strong>Topic:</strong> {topic}</div>
|
306 |
</div>
|
|
|
|
|
|
|
|
|
|
|
307 |
</div>
|
308 |
</body>
|
309 |
</html>"""
|