Timjo88 commited on
Commit
078de3e
Β·
1 Parent(s): ded73dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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=gr.inputs.Textbox(label="enter your monopoly question here"),
40
- outputs=gr.outputs.Label(),
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()