BhargabBarman1919 commited on
Commit
e5d792b
·
verified ·
1 Parent(s): 22bab40

Create app.py

Browse files
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()