Update app.py
Browse files
app.py
CHANGED
@@ -133,10 +133,10 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
133 |
with gr.Row():
|
134 |
with gr.Column():
|
135 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
136 |
-
answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
|
137 |
submit_button = gr.Button("Submit")
|
138 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
139 |
-
|
|
|
140 |
|
141 |
# Launch the Gradio app to allow user interaction
|
142 |
demo.launch(share=True)
|
|
|
133 |
with gr.Row():
|
134 |
with gr.Column():
|
135 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
|
|
136 |
submit_button = gr.Button("Submit")
|
137 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
138 |
+
answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
|
139 |
+
|
140 |
|
141 |
# Launch the Gradio app to allow user interaction
|
142 |
demo.launch(share=True)
|