Spaces:
Runtime error
Runtime error
Pavankalyan
commited on
Commit
•
83c525b
1
Parent(s):
b26f908
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ hf_writer = gr.HuggingFaceDatasetSaver('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',
|
|
11 |
|
12 |
|
13 |
def chitti(query):
|
|
|
14 |
re_table = search(query)
|
15 |
answers_re_table = [re_table[i][0] for i in range(0,5)]
|
16 |
answer_links = [re_table[i][3] for i in range(0,5)]
|
@@ -24,12 +25,14 @@ def chitti(query):
|
|
24 |
answer_links.pop(idx)
|
25 |
|
26 |
#return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
27 |
-
return [answers_re_table[0],answers_links[0],answers_re_table[1],answer_links[1]]
|
|
|
28 |
|
29 |
demo = gr.Interface(
|
30 |
fn=chitti,
|
31 |
inputs=["text"],
|
32 |
-
outputs=["text","text","text","text"],
|
|
|
33 |
allow_flagging = "manual",
|
34 |
flagging_options = ["0","1","None"],
|
35 |
flagging_callback=hf_writer
|
|
|
11 |
|
12 |
|
13 |
def chitti(query):
|
14 |
+
'''
|
15 |
re_table = search(query)
|
16 |
answers_re_table = [re_table[i][0] for i in range(0,5)]
|
17 |
answer_links = [re_table[i][3] for i in range(0,5)]
|
|
|
25 |
answer_links.pop(idx)
|
26 |
|
27 |
#return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
28 |
+
#return [answers_re_table[0],answers_links[0],answers_re_table[1],answer_links[1]]'''
|
29 |
+
return [str(os.getcwd())]
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
fn=chitti,
|
33 |
inputs=["text"],
|
34 |
+
#outputs=["text","text","text","text"],
|
35 |
+
outputs=["text"],
|
36 |
allow_flagging = "manual",
|
37 |
flagging_options = ["0","1","None"],
|
38 |
flagging_callback=hf_writer
|