File size: 420 Bytes
0530853
9a34640
0530853
702e906
9a34640
 
0530853
 
9a34640
702e906
0530853
9a34640
702e906
0530853
 
9a34640
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import os

def chatbot_response(message):
    # 여기에 챗봇 λ‘œμ§μ„ κ΅¬ν˜„ν•˜μ„Έμš”
    return f"에코: {message}"

def run_gradio():
    with gr.Blocks() as demo:
        chat_interface = gr.ChatInterface(chatbot_response)

    port = int(os.getenv('GRADIO_SERVER_PORT', 7860))
    demo.launch(server_name="0.0.0.0", server_port=port, share=True)

if __name__ == "__main__":
    run_gradio()