miscjose commited on
Commit
ee686c5
·
1 Parent(s): afff708
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -78,8 +78,10 @@ def get_recommendation(query, number_of_recommendations, genres, themes, rating,
78
  results.append(gr.Textbox(label=f"Recommendation {idx}: {english}", value=description, max_lines=7, visible=True))
79
  results.append(gr.Textbox(label=f"Most Relevant User Review",value=review, max_lines=7, visible=True))
80
 
81
- for i in range(3*((15*3)-(3*number_of_recommendations))):
82
- results.append("N/A")
 
 
83
 
84
  return results
85
 
@@ -125,7 +127,7 @@ if __name__ == '__main__':
125
 
126
  outputs = []
127
  with gr.Column():
128
- for i in range(15):
129
  with gr.Row():
130
  with gr.Column():
131
  outputs.append(gr.Image(height=435, width=500, visible=False))
 
78
  results.append(gr.Textbox(label=f"Recommendation {idx}: {english}", value=description, max_lines=7, visible=True))
79
  results.append(gr.Textbox(label=f"Most Relevant User Review",value=review, max_lines=7, visible=True))
80
 
81
+ for _ in range(10-number_of_recommendations):
82
+ results.append(gr.Image(visible=False))
83
+ results.append(gr.Textbox(visible=False))
84
+ results.append(gr.Textbox(visible=False))
85
 
86
  return results
87
 
 
127
 
128
  outputs = []
129
  with gr.Column():
130
+ for i in range(10):
131
  with gr.Row():
132
  with gr.Column():
133
  outputs.append(gr.Image(height=435, width=500, visible=False))