Spaces:
Runtime error
Runtime error
Pavankalyan
commited on
Commit
•
5ea36b0
1
Parent(s):
6c180a0
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,6 @@ hf_writer = gr.HuggingFaceDatasetSaver('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',
|
|
12 |
|
13 |
def chitti(query):
|
14 |
re_table = search(query)
|
15 |
-
'''
|
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)]
|
18 |
sorted_indices = sorted(range(len(answers_re_table)), key=lambda k: len(answers_re_table[k]))
|
@@ -25,8 +24,8 @@ def chitti(query):
|
|
25 |
answer_links.pop(idx)
|
26 |
|
27 |
#return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
28 |
-
return [answers_re_table[0],
|
29 |
-
return [re_table[0][0],re_table[0][3],re_table[1][0],re_table[1][3]]
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
fn=chitti,
|
|
|
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)]
|
17 |
sorted_indices = sorted(range(len(answers_re_table)), key=lambda k: len(answers_re_table[k]))
|
|
|
24 |
answer_links.pop(idx)
|
25 |
|
26 |
#return [res1,answers_re_table[0],res2,answers_re_table[1]]
|
27 |
+
return [answers_re_table[0],answer_links[0],answers_re_table[1],answer_links[1]]
|
28 |
+
#return [re_table[0][0],re_table[0][3],re_table[1][0],re_table[1][3]]
|
29 |
|
30 |
demo = gr.Interface(
|
31 |
fn=chitti,
|