Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,15 +4,7 @@ import streamlit as st
|
|
4 |
import json
|
5 |
def main():
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
# Use feature-extraction API to get sentence embeddings.
|
10 |
-
api_url = f"https://api-inference.huggingface.co/pipeline/feature-extraction/{model_id}"
|
11 |
-
# Token to access Huggingface Inference API.
|
12 |
-
headers = {"Authorization": f"Bearer {st.secrets['HF_token']}"}
|
13 |
-
|
14 |
-
|
15 |
-
st.title("Semantic Search for Questions on Reddit.")
|
16 |
|
17 |
st.write("This application lets you perform sentiment analysis on book reviews.\
|
18 |
Simply input a review into the text below and the application will give two predictions for what the \
|
|
|
4 |
import json
|
5 |
def main():
|
6 |
|
7 |
+
st.title("Sentiment Analysis for Book Reviews")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
st.write("This application lets you perform sentiment analysis on book reviews.\
|
10 |
Simply input a review into the text below and the application will give two predictions for what the \
|