Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,6 +112,7 @@ topics = """
|
|
| 112 |
|
| 113 |
# Setup the Gradio Blocks interface with custom layout components
|
| 114 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
|
|
| 115 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 116 |
with gr.Row():
|
| 117 |
with gr.Column():
|
|
@@ -119,9 +120,10 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column():
|
| 121 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 122 |
-
answer = gr.Textbox(label="TopExec Response", placeholder="TopExec will respond here...", interactive=False, lines=10)
|
| 123 |
submit_button = gr.Button("Submit")
|
| 124 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
|
|
|
|
|
|
| 125 |
|
| 126 |
|
| 127 |
# Launch the Gradio app to allow user interaction
|
|
|
|
| 112 |
|
| 113 |
# Setup the Gradio Blocks interface with custom layout components
|
| 114 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
| 115 |
+
gr.Image("personal-assistant-services.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 116 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 117 |
with gr.Row():
|
| 118 |
with gr.Column():
|
|
|
|
| 120 |
with gr.Row():
|
| 121 |
with gr.Column():
|
| 122 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
|
|
|
| 123 |
submit_button = gr.Button("Submit")
|
| 124 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 125 |
+
answer = gr.Textbox(label="TopExec Response", placeholder="TopExec will respond here...", interactive=False, lines=10)
|
| 126 |
+
|
| 127 |
|
| 128 |
|
| 129 |
# Launch the Gradio app to allow user interaction
|