ALNIK_AI / app.py
BhargabBarman1919's picture
ALNIK Al chatboard
b3e3653 verified
raw
history blame contribute delete
298 Bytes
import gradio as gr
from huggingface_hub import InferenceClient
client = InferenceClient("meta-llama/Llama-3.2-1B")
def chat(message, history):
response = client.text_generation(message, max_new_tokens=200)
return response
demo = gr.ChatInterface(fn=chat, title="ALNIK AI")
demo.launch()