Mauro24 commited on
Commit
ed1dd60
·
verified ·
1 Parent(s): 90e70e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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=[gr.Textbox(label="Relevant sentences"), gr.Gallery(label="Relevant figures")],
 
 
 
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()