Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ company = gr.Radio(choices=['aws', 'google', 'meta', 'msft', 'IBM'], label="Sele
|
|
173 |
#predict.click(predict, inputs=[textbox,company], outputs=[predict])
|
174 |
|
175 |
|
176 |
-
|
177 |
|
178 |
# Create the interface
|
179 |
# For the inputs parameter of Interface provide [textbox,company]
|
@@ -181,7 +181,7 @@ company = gr.Radio(choices=['aws', 'google', 'meta', 'msft', 'IBM'], label="Sele
|
|
181 |
demo = gr.Interface(
|
182 |
fn=predict,
|
183 |
inputs=[textbox,company],
|
184 |
-
outputs=
|
185 |
title="AI-Powered Question Answering")
|
186 |
|
187 |
# Run the interface
|
|
|
173 |
#predict.click(predict, inputs=[textbox,company], outputs=[predict])
|
174 |
|
175 |
|
176 |
+
model_output = gr.Label(label='Answer to your qestion')
|
177 |
|
178 |
# Create the interface
|
179 |
# For the inputs parameter of Interface provide [textbox,company]
|
|
|
181 |
demo = gr.Interface(
|
182 |
fn=predict,
|
183 |
inputs=[textbox,company],
|
184 |
+
outputs=model_output,
|
185 |
title="AI-Powered Question Answering")
|
186 |
|
187 |
# Run the interface
|