kronos25 commited on
Commit
910e2ed
·
verified ·
1 Parent(s): d92346d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("HuggingFaceH4/zephyr-7b-beta")
10
 
11
  def predict(message, history):
12
- model = T5ForConditionalGeneration.from_pretrained('kronos25/Temporal_Chatbot')
13
- tokenizer = T5Tokenizer.from_pretrained('kronos25/Temporal_Chatbot')
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)