Spaces:
Running
Running
File size: 513 Bytes
db32e48 afb453a db32e48 afb453a db32e48 e841ba5 db32e48 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import gradio as gr
import modelscope_studio as mgr
import modelscope_studio.components.base as ms
with gr.Blocks() as demo, ms.Application():
mgr.Markdown("""
<accordion title="Using tool">
```json
{"text": "glorious weather", "resolution": "1024*1024"}
```
</accordion>
Use `::accordion-title` to support markdown:
<accordion>
::accordion-title[Using `tool`]
```json
{"text": "glorious weather", "resolution": "1024*1024"}
```
</accordion>
""")
if __name__ == "__main__":
demo.queue().launch()
|