Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -303,22 +303,17 @@ with demo:
|
|
| 303 |
</div>
|
| 304 |
</div>
|
| 305 |
{% endraw %}
|
| 306 |
-
<!-- We'll compute global_callout_html below and pass it into the template using gr.HTML(). -->
|
| 307 |
-
<!-- Instead, we'll do this in Python: -->
|
| 308 |
{% raw %}
|
| 309 |
<script>
|
| 310 |
// The following script block is just a placeholder. In Gradio we will generate the full HTML in Python.
|
| 311 |
</script>
|
| 312 |
{% endraw %}
|
| 313 |
|
| 314 |
-
<!-- For Gradio, we generate the combined HTML in Python -->
|
| 315 |
{% endraw %}
|
| 316 |
-
<!-- Generate the global header HTML with the computed callout -->
|
| 317 |
{% raw %}
|
| 318 |
<script>
|
| 319 |
</script>
|
| 320 |
{% endraw %}
|
| 321 |
-
<!-- We'll now use gr.HTML with f-string formatting: -->
|
| 322 |
{% raw %}
|
| 323 |
{% endraw %}
|
| 324 |
{# Compute the global callout HTML in Python #}
|
|
|
|
| 303 |
</div>
|
| 304 |
</div>
|
| 305 |
{% endraw %}
|
|
|
|
|
|
|
| 306 |
{% raw %}
|
| 307 |
<script>
|
| 308 |
// The following script block is just a placeholder. In Gradio we will generate the full HTML in Python.
|
| 309 |
</script>
|
| 310 |
{% endraw %}
|
| 311 |
|
|
|
|
| 312 |
{% endraw %}
|
|
|
|
| 313 |
{% raw %}
|
| 314 |
<script>
|
| 315 |
</script>
|
| 316 |
{% endraw %}
|
|
|
|
| 317 |
{% raw %}
|
| 318 |
{% endraw %}
|
| 319 |
{# Compute the global callout HTML in Python #}
|