File size: 380 Bytes
66f8fc1
71b6b7a
66f8fc1
71b6b7a
66f8fc1
 
80fa96c
e127159
66f8fc1
 
329f9c0
 
 
e127159
 
71b6b7a
329f9c0
66f8fc1
329f9c0
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr
import frontmatter

description = frontmatter.load("README.md").content


def predict(inp):
    return "hi"


def run():
    demo = gr.Interface(
        fn=predict,
        inputs=gr.Textbox(),
        outputs=gr.Textbox(),
        description=description
    )

    demo.launch(server_name="0.0.0.0", server_port=7860)


if __name__ == "__main__":
    run()