Spaces:
Build error
Build error
wissamantoun
commited on
Commit
•
c155b67
1
Parent(s):
50f2d4b
fixes
Browse files- backend/qa.py +1 -1
- backend/sarcasm.py +1 -6
backend/qa.py
CHANGED
@@ -8,7 +8,7 @@ def write():
|
|
8 |
_, col1, _ = st.beta_columns(3)
|
9 |
|
10 |
with col1:
|
11 |
-
st.image("is2alni_logo.png", width=200)
|
12 |
st.title("إسألني أي شيء")
|
13 |
|
14 |
st.markdown(
|
|
|
8 |
_, col1, _ = st.beta_columns(3)
|
9 |
|
10 |
with col1:
|
11 |
+
st.image("images/is2alni_logo.png", width=200)
|
12 |
st.title("إسألني أي شيء")
|
13 |
|
14 |
st.markdown(
|
backend/sarcasm.py
CHANGED
@@ -18,9 +18,4 @@ def write():
|
|
18 |
with st.spinner("Predicting..."):
|
19 |
prediction, scores = predictor.get_preds_from_sarcasm([input_text])
|
20 |
st.write(f"Result: {prediction[0]}")
|
21 |
-
|
22 |
-
"Sarcastic": scores[0][0],
|
23 |
-
"Not_Sarcastic": scores[0][1],
|
24 |
-
}
|
25 |
-
st.write("All scores:")
|
26 |
-
st.write(detailed_score)
|
|
|
18 |
with st.spinner("Predicting..."):
|
19 |
prediction, scores = predictor.get_preds_from_sarcasm([input_text])
|
20 |
st.write(f"Result: {prediction[0]}")
|
21 |
+
st.write(f"Score: {scores[0]}")
|
|
|
|
|
|
|
|
|
|