girlfriendAI / app.py
Blurp748's picture
init
122fdc5
import gradio as gr
import random
import time
model = gr.load("Tann-dev/sex-chat-dirty-girlfriend", src="models")
with gr.Blocks() as demo:
chatbot = gr.Chatbot()
msg = gr.Textbox()
clear = gr.ClearButton([msg, chatbot])
def respond(message, chat_history):
bot_message = model(message)
chat_history.append((message, bot_message))
time.sleep(2)
return "", chat_history
msg.submit(respond, [msg, chatbot], [msg, chatbot])
if __name__ == "__main__":
demo.launch()