chimera-chat / app.py
kcomklk's picture
Upload app.py with huggingface_hub
a44c404 verified
Raw
History Blame Contribute Delete
394 Bytes
import gradio as gr
from huggingface_hub import InferenceClient
client = InferenceClient("deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct")
def chat(message, history):
response = client.text_generation(message, max_new_tokens=512, temperature=0.7)
return response
gr.ChatInterface(
fn=chat,
title="Chimera AI",
description="あなただけのAIアシスタント"
).launch()