Spaces:
Runtime error
Runtime error
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() |