kai-llm-copy / web.py
seawolf2357's picture
Update web.py
702e906 verified
raw
history blame contribute delete
420 Bytes
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()