Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -447,19 +447,6 @@ if __name__ == "__main__":
|
|
| 447 |
break
|
| 448 |
|
| 449 |
if help_tab_index != -1:
|
| 450 |
-
# This is a bit hacky as direct modification of Markdown content post-render is complex.
|
| 451 |
-
# The markdown content is static here. We'll update the string before demo.launch()
|
| 452 |
-
# The markdown string itself was already modified above.
|
| 453 |
-
# For dynamic updates in Gradio, one would typically use gr.Markdown().update(value="new markdown")
|
| 454 |
-
# but this is for initial setup.
|
| 455 |
-
|
| 456 |
-
# The string for Markdown is already updated.
|
| 457 |
-
# The line below was an attempt to dynamically update, but it's not needed as the string is changed prior to launch.
|
| 458 |
-
# demo.children[help_tab_index[0]].children[help_tab_index[1]].children[0].value = demo.children[help_tab_index[0]].children[help_tab_index[1]].children[0].value.replace(
|
| 459 |
-
# "smolagents Available: '✅ Yes'", f"smolagents Available: {'✅ Yes' if HAS_SMOLAGENTS else '❌ No'}"
|
| 460 |
-
# )
|
| 461 |
-
# Instead, we ensure the markdown string itself reflects HAS_SMOLAGENTS if it were dynamic.
|
| 462 |
-
# For this request, the static string modification is sufficient.
|
| 463 |
pass
|
| 464 |
|
| 465 |
|
|
|
|
| 447 |
break
|
| 448 |
|
| 449 |
if help_tab_index != -1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 450 |
pass
|
| 451 |
|
| 452 |
|