Spaces:
Runtime error
Runtime error
tharunkr24
commited on
Commit
β’
3fb7896
1
Parent(s):
34b15c4
Update app.py
Browse files
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(
|
16 |
-
recipe_id_to_row_num[
|
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="
|
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)]
|