Spaces:
No application file
No application file
File size: 410 Bytes
53788a1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from Testcomponent import Testcomponent
example = Testcomponent().example_value()
demo = gr.Interface(
lambda x:x,
Testcomponent(), # interactive version of your component
Testcomponent(), # static version of your component
# examples=[[example]], # uncomment this line to view the "example version" of your component
)
if __name__ == "__main__":
demo.launch()
|