Update app.py
Browse files
app.py
CHANGED
@@ -151,8 +151,8 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
151 |
with gr.Row():
|
152 |
with gr.Column():
|
153 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
154 |
-
submit_button = gr.Button("Submit")
|
155 |
answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
|
|
|
156 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
157 |
|
158 |
def display_response(question):
|
|
|
151 |
with gr.Row():
|
152 |
with gr.Column():
|
153 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
|
|
154 |
answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
|
155 |
+
submit_button = gr.Button("Submit")
|
156 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
157 |
|
158 |
def display_response(question):
|