Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ if sentence !='':
|
|
48 |
doc = [d for d in results]
|
49 |
hscodes = [extract_hscode(item) for item in doc[0]]
|
50 |
for code in hscodes:
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
st.write("answer:",answer.lower())
|
|
|
48 |
doc = [d for d in results]
|
49 |
hscodes = [extract_hscode(item) for item in doc[0]]
|
50 |
for code in hscodes:
|
51 |
+
filter_df = df2[df2['hs_code']==code]
|
52 |
+
answer = filter_df['full_description'].iloc[0]
|
53 |
+
st.write("Hscode:",code)
|
54 |
st.write("answer:",answer.lower())
|