Spaces:
Runtime error
Runtime error
Pavankalyan
commited on
Commit
•
ddb6e98
1
Parent(s):
5af0347
Update app.py
Browse files
app.py
CHANGED
@@ -32,12 +32,14 @@ def chitti(query):
|
|
32 |
res1 = nlp(QA_input)['answer']
|
33 |
QA_input = {'question': query,'context': answers_re_table[1]}
|
34 |
res2 = nlp(QA_input)['answer']
|
35 |
-
return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
|
|
36 |
|
37 |
demo = gr.Interface(
|
38 |
fn=chitti,
|
39 |
inputs=["text"],
|
40 |
-
outputs=["text","text","text","text"],
|
|
|
41 |
allow_flagging = "manual",
|
42 |
flagging_options = ["0","1","None"],
|
43 |
flagging_callback=hf_writer
|
|
|
32 |
res1 = nlp(QA_input)['answer']
|
33 |
QA_input = {'question': query,'context': answers_re_table[1]}
|
34 |
res2 = nlp(QA_input)['answer']
|
35 |
+
#return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
36 |
+
return [answers_re_table[0],answers_re_table[1]]
|
37 |
|
38 |
demo = gr.Interface(
|
39 |
fn=chitti,
|
40 |
inputs=["text"],
|
41 |
+
#outputs=["text","text","text","text"],
|
42 |
+
outputs=["text","text"],
|
43 |
allow_flagging = "manual",
|
44 |
flagging_options = ["0","1","None"],
|
45 |
flagging_callback=hf_writer
|