Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,11 @@ import json
|
|
6 |
"""
|
7 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
8 |
"""
|
9 |
-
client = InferenceClient("
|
10 |
|
11 |
def predict(message, history):
|
12 |
-
model = T5ForConditionalGeneration.from_pretrained('
|
13 |
-
tokenizer = T5Tokenizer.from_pretrained('
|
14 |
input = message + '\n'
|
15 |
inputs = tokenizer(input, return_tensors="pt")
|
16 |
outputs = model.generate(**inputs,max_length=100)
|
|
|
6 |
"""
|
7 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
8 |
"""
|
9 |
+
client = InferenceClient("kronos25/Temporal_Chatbot")
|
10 |
|
11 |
def predict(message, history):
|
12 |
+
model = T5ForConditionalGeneration.from_pretrained('')
|
13 |
+
tokenizer = T5Tokenizer.from_pretrained('')
|
14 |
input = message + '\n'
|
15 |
inputs = tokenizer(input, return_tensors="pt")
|
16 |
outputs = model.generate(**inputs,max_length=100)
|