Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,12 @@ def predict(question):
|
|
34 |
answer = predictions["answers"]
|
35 |
return answer
|
36 |
|
|
|
|
|
|
|
37 |
gr.Interface(
|
38 |
-
predict,
|
39 |
-
inputs=
|
40 |
-
outputs=
|
41 |
title="Monopoly FAQ Semantic Search",
|
42 |
).launch()
|
|
|
34 |
answer = predictions["answers"]
|
35 |
return answer
|
36 |
|
37 |
+
input_question =gr.inputs.Textbox(label="enter your monopoly question here")
|
38 |
+
response = gr.outputs.Label()
|
39 |
+
|
40 |
gr.Interface(
|
41 |
+
predict(input_question),
|
42 |
+
inputs=input_question,
|
43 |
+
outputs=response,
|
44 |
title="Monopoly FAQ Semantic Search",
|
45 |
).launch()
|