Upload app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def predict_output (user_input,company):
|
|
128 |
company = "AWS"
|
129 |
elif company == "IBM":
|
130 |
company = "IBM"
|
131 |
-
elif company
|
132 |
company = "Google"
|
133 |
elif company == "Msft":
|
134 |
company = "Msft"
|
@@ -172,7 +172,7 @@ model_output = gr.Textbox (label = 'Response')
|
|
172 |
# For the inputs parameter of Interface provide [textbox,company]
|
173 |
|
174 |
demo = gr.Interface(
|
175 |
-
fn=
|
176 |
inputs=[user_input,company_input],
|
177 |
outputs=model_output,
|
178 |
title="RAG on 10k-reports",
|
|
|
128 |
company = "AWS"
|
129 |
elif company == "IBM":
|
130 |
company = "IBM"
|
131 |
+
elif company == "Google":
|
132 |
company = "Google"
|
133 |
elif company == "Msft":
|
134 |
company = "Msft"
|
|
|
172 |
# For the inputs parameter of Interface provide [textbox,company]
|
173 |
|
174 |
demo = gr.Interface(
|
175 |
+
fn=predict_output,
|
176 |
inputs=[user_input,company_input],
|
177 |
outputs=model_output,
|
178 |
title="RAG on 10k-reports",
|