Spaces:
Sleeping
Sleeping
changes to pipeline
Browse files
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
|
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("
|
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 |
|