BhargabBarman1919 commited on
Commit
b3e3653
·
verified ·
1 Parent(s): 1a4e59f

ALNIK Al chatboard

Browse files

ALNIK Al
![file_000000001df87206ae262ea15f338831](https://cdn-uploads.huggingface.co/production/uploads/69306e67362a5b59e50ae9f5/jbCdoLHAszEJZV3n8uFCE.png)
Ok

Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from huggingface_hub import InferenceClient
3
+
4
+ client = InferenceClient("meta-llama/Llama-3.2-1B")
5
+
6
+ def chat(message, history):
7
+ response = client.text_generation(message, max_new_tokens=200)
8
+ return response
9
+
10
+ demo = gr.ChatInterface(fn=chat, title="ALNIK AI")
11
+ demo.launch()