fixed bug
Browse files
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
|
82 |
-
results.append(
|
|
|
|
|
83 |
|
84 |
return results
|
85 |
|
@@ -125,7 +127,7 @@ if __name__ == '__main__':
|
|
125 |
|
126 |
outputs = []
|
127 |
with gr.Column():
|
128 |
-
for i in range(
|
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))
|