Gopala Krishna commited on
Commit
ad0715b
·
1 Parent(s): 9063ba0

working with dotted line

Browse files
.vs/IBCFProductRecommendations/FileContentIndex/34538bb2-16ee-432e-9436-82b1d17c1a6c.vsidx ADDED
Binary file (272 Bytes). View file
 
.vs/IBCFProductRecommendations/FileContentIndex/7428d67e-472c-4236-a026-111dcdf48d28.vsidx DELETED
Binary file (297 Bytes)
 
.vs/IBCFProductRecommendations/v17/.wsuo CHANGED
Binary files a/.vs/IBCFProductRecommendations/v17/.wsuo and b/.vs/IBCFProductRecommendations/v17/.wsuo differ
 
app.py CHANGED
@@ -44,7 +44,10 @@ def find_similar_items(stock_code):
44
 
45
  # Return the list of similar items of the given StockCode with item Description.
46
  results_df = df1a.loc[df1a['StockCode'].isin(top_5_similar_items), ['StockCode', 'Description']].drop_duplicates().set_index('StockCode').loc[top_5_similar_items]
47
- return "\n" + results_df.to_string()
 
 
 
48
 
49
  # Set up the interface
50
  stock_code_input = gr.inputs.Textbox(label="Enter Stock Code:")
 
44
 
45
  # Return the list of similar items of the given StockCode with item Description.
46
  results_df = df1a.loc[df1a['StockCode'].isin(top_5_similar_items), ['StockCode', 'Description']].drop_duplicates().set_index('StockCode').loc[top_5_similar_items]
47
+ results_str = "\n" + results_df.to_string()
48
+ results_list = results_str.split('\n')
49
+ results_list.insert(4, '-'*50) # Insert dotted line after the 3rd item
50
+ return "\n".join(results_list)
51
 
52
  # Set up the interface
53
  stock_code_input = gr.inputs.Textbox(label="Enter Stock Code:")
requirements.txt CHANGED
@@ -1 +0,0 @@
1
- sklearn