Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -146,10 +146,13 @@ examples = [
|
|
146 |
iface = gr.Interface(
|
147 |
fn=find_relevant_sentences,
|
148 |
inputs=gr.Textbox(label="Insert your query"),
|
149 |
-
outputs=[
|
|
|
|
|
|
|
150 |
examples=examples,
|
151 |
title="Manual Querying System",
|
152 |
description="Enter a question about the machine, and this tool will find the most relevant sentences and associated figures from the manual.",
|
153 |
)
|
154 |
|
155 |
-
iface.launch()
|
|
|
146 |
iface = gr.Interface(
|
147 |
fn=find_relevant_sentences,
|
148 |
inputs=gr.Textbox(label="Insert your query"),
|
149 |
+
outputs=[
|
150 |
+
gr.Textbox(label="Relevant sentences"),
|
151 |
+
gr.Gallery(label="Relevant figures", value=[os.path.join(image_folder, "4b.jpg")]) # Anteprima immagine iniziale
|
152 |
+
],
|
153 |
examples=examples,
|
154 |
title="Manual Querying System",
|
155 |
description="Enter a question about the machine, and this tool will find the most relevant sentences and associated figures from the manual.",
|
156 |
)
|
157 |
|
158 |
+
iface.launch()
|