chore: update dep
Browse files- app.py +1 -1
- pyproject.toml +13 -0
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|