File size: 298 Bytes
b3e3653
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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()