Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import plotly.graph_objects as go
|
| 3 |
import pandas as pd
|
| 4 |
-
from transformers import pipeline
|
| 5 |
|
| 6 |
# Define a list of dictionaries containing hospital data
|
| 7 |
hospitals = [
|
|
@@ -42,7 +42,7 @@ df = pd.DataFrame(hospitals)
|
|
| 42 |
df.to_csv('hospitals.csv', index=False)
|
| 43 |
|
| 44 |
# Load the Hugging Face model
|
| 45 |
-
model = pipeline('sentiment-analysis')
|
| 46 |
|
| 47 |
# Define a function to analyze the sentiment of hospital names
|
| 48 |
def analyze_sentiment(text):
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import plotly.graph_objects as go
|
| 3 |
import pandas as pd
|
| 4 |
+
#from transformers import pipeline
|
| 5 |
|
| 6 |
# Define a list of dictionaries containing hospital data
|
| 7 |
hospitals = [
|
|
|
|
| 42 |
df.to_csv('hospitals.csv', index=False)
|
| 43 |
|
| 44 |
# Load the Hugging Face model
|
| 45 |
+
#model = pipeline('sentiment-analysis')
|
| 46 |
|
| 47 |
# Define a function to analyze the sentiment of hospital names
|
| 48 |
def analyze_sentiment(text):
|