Spaces:
Sleeping
Sleeping
Fix SyntaxError by adding missing closing parenthesis
Browse files
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")
|