ivxivx commited on
Commit
a19606f
·
unverified ·
1 Parent(s): b1f07de

chore: update dep

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. pyproject.toml +13 -0
  3. requirements.txt +0 -11
app.py CHANGED
@@ -75,7 +75,7 @@ def predict(message, history):
75
  outputs = model.generate(**inputs, max_new_tokens=100)
76
  response = tokenizer.decode(outputs[0], skip_special_tokens=True)
77
 
78
- print(f"Response: {response}, outputs: {outputs}")
79
  return response
80
 
81
  demo = gr.ChatInterface(predict, type="messages", examples=examples)
 
75
  outputs = model.generate(**inputs, max_new_tokens=100)
76
  response = tokenizer.decode(outputs[0], skip_special_tokens=True)
77
 
78
+ # print(f"Response: {response}, outputs: {outputs}")
79
  return response
80
 
81
  demo = gr.ChatInterface(predict, type="messages", examples=examples)
pyproject.toml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "hf-customer-service-chatbot"
3
+ version = "0.1.0"
4
+ description = "A customer service chatbot using Hugging Face Transformers and Gradio"
5
+ requires-python = "==3.11.*"
6
+
7
+ dependencies = [
8
+ "python-dotenv>=1.0.1",
9
+ "huggingface-hub>=0.27.0",
10
+ "accelerate>=1.3.0",
11
+ "transformers==4.49.0",
12
+ "gradio>=5.23.0"
13
+ ]
requirements.txt DELETED
@@ -1,11 +0,0 @@
1
-
2
- python-dotenv>=1.0.1
3
-
4
- huggingface-hub>=0.27.0
5
-
6
- accelerate>=1.3.0
7
-
8
- transformers==4.49.0
9
-
10
- gradio
11
- gradio_client