karanzrk commited on
Commit
d89da89
·
1 Parent(s): 3ccc1d1

changes to pipeline

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ def inference(text):
65
  text = "Question: " + text
66
  output = generator(text)
67
  answer = output["generated_text"]
68
- return output
69
 
70
  # launcher = gr.Interface(
71
  # fn=inference,
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
81
  """
82
  )
83
  inputs = gr.Textbox(label="Input Box",lines = 5, placeholder="Question: ")
84
- button = gr.Button("Grade!")
85
  output = gr.Textbox(label="Output Box")
86
  button.click(fn=inference, inputs=inputs, outputs = output, api_name="Autograde")
87
 
 
65
  text = "Question: " + text
66
  output = generator(text)
67
  answer = output["generated_text"]
68
+ return answer
69
 
70
  # launcher = gr.Interface(
71
  # fn=inference,
 
81
  """
82
  )
83
  inputs = gr.Textbox(label="Input Box",lines = 5, placeholder="Question: ")
84
+ button = gr.Button("Ask!")
85
  output = gr.Textbox(label="Output Box")
86
  button.click(fn=inference, inputs=inputs, outputs = output, api_name="Autograde")
87