| import gradio as gr | |
| from content.conn import chat | |
| from content.ad import T | |
| def greet(input): | |
| return chat(input) + '\n\n' + T | |
| if __name__ == '__main__': | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch(share=True) | |
| import gradio as gr | |
| from content.conn import chat | |
| from content.ad import T | |
| def greet(input): | |
| return chat(input) + '\n\n' + T | |
| if __name__ == '__main__': | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch(share=True) | |