Spaces:
Build error
Build error
LawalAfeez
commited on
Commit
•
63d0586
1
Parent(s):
603b835
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,10 @@ embedded_form.add_faiss_index("embedding")
|
|
11 |
|
12 |
# gradio function
|
13 |
|
14 |
-
|
15 |
-
<H1 style="background-color:powderblue;">
|
|
|
|
|
16 |
|
17 |
|
18 |
def input_text1(text):
|
@@ -90,18 +92,18 @@ def input_text5(text):
|
|
90 |
return dataframe.loc[4,"support"]
|
91 |
|
92 |
|
93 |
-
answer1=gr.Interface(input_text1,inputs=gr.Textbox(label="
|
94 |
|
95 |
-
answer2=gr.Interface(input_text2,inputs=gr.Textbox(label="
|
96 |
|
97 |
-
answer3=gr.Interface(input_text3,inputs=gr.Textbox(label="
|
98 |
|
99 |
|
100 |
-
answer4=gr.Interface(input_text4,inputs=gr.Textbox(label="
|
101 |
|
102 |
-
answer5=gr.Interface(input_text5,inputs=gr.Textbox(label="
|
103 |
|
104 |
-
demo=gr.Parallel(answer1,answer2,answer3,answer4,answer5,description=description)
|
105 |
|
106 |
|
107 |
if __name__ == "__main__":
|
|
|
11 |
|
12 |
# gradio function
|
13 |
|
14 |
+
title="""
|
15 |
+
<H1 style="background-color:powderblue;">SEARCH FOR SCIENCE RELATED(BIOLOGY,PHYSICS AND CHEMISTRY)</H1>"""
|
16 |
+
|
17 |
+
description="""<center><h4>This app is created to help give answers to high school science related questions</h4></center>"""
|
18 |
|
19 |
|
20 |
def input_text1(text):
|
|
|
92 |
return dataframe.loc[4,"support"]
|
93 |
|
94 |
|
95 |
+
answer1=gr.Interface(input_text1,inputs=gr.Textbox(label="Search"),outputs=gr.Textbox(label="Support 1"))
|
96 |
|
97 |
+
answer2=gr.Interface(input_text2,inputs=gr.Textbox(label="Search"),outputs=gr.Textbox(label="Support 2"))
|
98 |
|
99 |
+
answer3=gr.Interface(input_text3,inputs=gr.Textbox(label="Search"),outputs=gr.Textbox(label="Support 3"))
|
100 |
|
101 |
|
102 |
+
answer4=gr.Interface(input_text4,inputs=gr.Textbox(label="Search"),outputs=gr.Textbox(label="Support 4"))
|
103 |
|
104 |
+
answer5=gr.Interface(input_text5,inputs=gr.Textbox(label="Search"),outputs=gr.Textbox(label="Support 5"))
|
105 |
|
106 |
+
demo=gr.Parallel(answer1,answer2,answer3,answer4,answer5,description=description,title=title)
|
107 |
|
108 |
|
109 |
if __name__ == "__main__":
|