Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from huggingface_hub import Repository
|
|
| 4 |
import os
|
| 5 |
from pathlib import Path
|
| 6 |
import json
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
# Declaring the variables for later use to talk to dataset
|
|
@@ -44,11 +45,20 @@ if keys is not None:
|
|
| 44 |
|
| 45 |
if topic is not None:
|
| 46 |
c1, c2, c3 = st.columns([3, 1, 1])
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
title = st.text_input('Movie title', 'Life of Brian')
|
| 53 |
if st.button('Submit'):
|
| 54 |
new_row = title
|
|
|
|
| 4 |
import os
|
| 5 |
from pathlib import Path
|
| 6 |
import json
|
| 7 |
+
import numpy as np
|
| 8 |
|
| 9 |
|
| 10 |
# Declaring the variables for later use to talk to dataset
|
|
|
|
| 45 |
|
| 46 |
if topic is not None:
|
| 47 |
c1, c2, c3 = st.columns([3, 1, 1])
|
| 48 |
+
if np.random.randint(0,1) == 0:
|
| 49 |
+
choice = 'Gender'
|
| 50 |
+
else:
|
| 51 |
+
choice = 'Women Empowernment'
|
| 52 |
+
with c1:
|
| 53 |
+
st.header('Text')
|
| 54 |
+
st.text(paraList[label][choice][0]
|
| 55 |
+
with c2:
|
| 56 |
+
st.header('Tag')
|
| 57 |
+
st.text(choice)
|
| 58 |
+
with c3:
|
| 59 |
+
st.header('Feedback')
|
| 60 |
+
st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
| 61 |
+
|
| 62 |
title = st.text_input('Movie title', 'Life of Brian')
|
| 63 |
if st.button('Submit'):
|
| 64 |
new_row = title
|