lys475964044 commited on
Commit
5086ddd
·
verified ·
1 Parent(s): ad47044

Fix SyntaxError by adding missing closing parenthesis

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ model = AutoModelForCausalLM.from_pretrained("HIT-TMG/bge-m3_RAG-conversational-
6
 
7
  def predict(input_text):
8
  inputs = tokenizer(input_text, return_tensors="pt")
9
- outputs = model.generate(**inputs, max_length=100
10
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
11
 
12
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")
 
6
 
7
  def predict(input_text):
8
  inputs = tokenizer(input_text, return_tensors="pt")
9
+ outputs = model.generate(**inputs, max_length=100)
10
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
11
 
12
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")