Spaces:
Running
Running
Commit
·
13837fb
1
Parent(s):
c39e9b8
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def return_lan_para(radio_value):
|
|
133 |
return context,que_list[0],que_list[1],que_list[2],que_list[3],que_list[4],a1,a2,a3,a4,a5
|
134 |
|
135 |
|
136 |
-
with gr.Blocks(css=".gradio-container {background-color: lightgray}") as demo:
|
137 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
|
138 |
+ "BERT based QnA"
|
139 |
+ "</h1>")
|
@@ -144,8 +144,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as demo:
|
|
144 |
input_radio= gr.Radio(language_options,label="Select a language",value='English')
|
145 |
input_text=gr.Textbox(lines=5, label="Paragraph",value =input_para)
|
146 |
with gr.Row():
|
147 |
-
sub_btn = gr.Button("Submit")
|
148 |
-
gr.Button.style(sub_btn,bg_color='orange',text_color='white')
|
149 |
with gr.Column():
|
150 |
q1=gr.Textbox(label="Question 1",value=question[0])
|
151 |
a1=gr.Textbox(label="Answer 1")
|
|
|
133 |
return context,que_list[0],que_list[1],que_list[2],que_list[3],que_list[4],a1,a2,a3,a4,a5
|
134 |
|
135 |
|
136 |
+
with gr.Blocks(css=".gradio-container {background-color: lightgray} #btn {background-color: orange;}") as demo:
|
137 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
|
138 |
+ "BERT based QnA"
|
139 |
+ "</h1>")
|
|
|
144 |
input_radio= gr.Radio(language_options,label="Select a language",value='English')
|
145 |
input_text=gr.Textbox(lines=5, label="Paragraph",value =input_para)
|
146 |
with gr.Row():
|
147 |
+
sub_btn = gr.Button("Submit",elem_id="btn")
|
|
|
148 |
with gr.Column():
|
149 |
q1=gr.Textbox(label="Question 1",value=question[0])
|
150 |
a1=gr.Textbox(label="Answer 1")
|