tharunkr24 commited on
Commit
3fb7896
β€’
1 Parent(s): 34b15c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,8 +12,8 @@ model = bolt.UniversalDeepTransformer.load("1bn_name_ctg_keywords.bolt")
12
 
13
  recipe_id_to_row_num = {}
14
 
15
- for i in range(data.shape[0]):
16
- recipe_id_to_row_num[data.iloc[i,0]] = i
17
 
18
 
19
  LIKE_TEXT = "πŸ‘"
@@ -149,7 +149,7 @@ default_query = (
149
 
150
 
151
  with gr.Blocks() as demo:
152
- query = gr.Textbox(value=default_query, label="Question", lines=10)
153
  submit = gr.Button(value="Search")
154
 
155
  header = [gr.Markdown("# Relevant Recipes", visible=False)]
 
12
 
13
  recipe_id_to_row_num = {}
14
 
15
+ for i in range(df.shape[0]):
16
+ recipe_id_to_row_num[df.iloc[i,0]] = i
17
 
18
 
19
  LIKE_TEXT = "πŸ‘"
 
149
 
150
 
151
  with gr.Blocks() as demo:
152
+ query = gr.Textbox(value=default_query, label="Query", lines=10)
153
  submit = gr.Button(value="Search")
154
 
155
  header = [gr.Markdown("# Relevant Recipes", visible=False)]