Spaces:
Runtime error
Runtime error
Commit
·
9487794
1
Parent(s):
6e5ef50
Update app.py
Browse files
app.py
CHANGED
@@ -54,9 +54,9 @@ tool = language_tool_python.LanguageToolPublicAPI('en-US')
|
|
54 |
|
55 |
# Define the Streamlit app
|
56 |
st.title("NLP Testing and Scoring App")
|
57 |
-
|
58 |
# Web scraping and text cleaning
|
59 |
-
entity =
|
60 |
prefix = "https://wiki.kidzsearch.com/wiki/"
|
61 |
page = requests.get(f'{prefix}{entity}')
|
62 |
res = BeautifulSoup(page.content, 'html.parser')
|
@@ -134,7 +134,6 @@ scores = []
|
|
134 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
135 |
|
136 |
# Add a Streamlit UI for input and displaying scores
|
137 |
-
topic = st.text_input("Enter a topic (optional):")
|
138 |
question_list = subjective_generator.generate_test(topic)
|
139 |
questions = []
|
140 |
for i, question in enumerate(question_list):
|
|
|
54 |
|
55 |
# Define the Streamlit app
|
56 |
st.title("NLP Testing and Scoring App")
|
57 |
+
topic = st.text_input("Enter a topic (optional):")
|
58 |
# Web scraping and text cleaning
|
59 |
+
entity = topic
|
60 |
prefix = "https://wiki.kidzsearch.com/wiki/"
|
61 |
page = requests.get(f'{prefix}{entity}')
|
62 |
res = BeautifulSoup(page.content, 'html.parser')
|
|
|
134 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
135 |
|
136 |
# Add a Streamlit UI for input and displaying scores
|
|
|
137 |
question_list = subjective_generator.generate_test(topic)
|
138 |
questions = []
|
139 |
for i, question in enumerate(question_list):
|