Spaces:
Runtime error
Runtime error
Commit
·
e58d90f
1
Parent(s):
3a99cb9
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,7 @@ async def get_answer(q: QueryM ):
|
|
100 |
top_k=q.topk,
|
101 |
temperature=q.temp,
|
102 |
)
|
|
|
103 |
params = {"candidate_labels":["refund", "legal", "faq"]}
|
104 |
x = inference(inputs,generate_kwargs )[0]['generated_text']
|
105 |
x=x.replace(inputs,'')
|
|
|
100 |
top_k=q.topk,
|
101 |
temperature=q.temp,
|
102 |
)
|
103 |
+
inputs= text
|
104 |
params = {"candidate_labels":["refund", "legal", "faq"]}
|
105 |
x = inference(inputs,generate_kwargs )[0]['generated_text']
|
106 |
x=x.replace(inputs,'')
|