Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,8 @@ def main():
|
|
107 |
if uploaded_file is not None:
|
108 |
# Read the uploaded excel file into a pandas DataFrame
|
109 |
df = pd.read_csv(uploaded_file)
|
110 |
-
df["text"].str.replace("@united", "")
|
111 |
-
|
112 |
# Process each tweet in the DataFrame
|
113 |
for tweet in df["text"]:
|
114 |
tweet_info = process_tweet(tweet)
|
@@ -126,7 +126,6 @@ def main():
|
|
126 |
|
127 |
# Iterate over the DataFrame rows
|
128 |
for index, row in df_with_buttons.iterrows():
|
129 |
-
# Get the audio URL from the 'Audio' column
|
130 |
audio = row['Audio']
|
131 |
st.audio(audio.data, format="audio/wav", start_time=0)
|
132 |
|
|
|
107 |
if uploaded_file is not None:
|
108 |
# Read the uploaded excel file into a pandas DataFrame
|
109 |
df = pd.read_csv(uploaded_file)
|
110 |
+
df["text"] = df["text"].str.replace("@united", "")
|
111 |
+
|
112 |
# Process each tweet in the DataFrame
|
113 |
for tweet in df["text"]:
|
114 |
tweet_info = process_tweet(tweet)
|
|
|
126 |
|
127 |
# Iterate over the DataFrame rows
|
128 |
for index, row in df_with_buttons.iterrows():
|
|
|
129 |
audio = row['Audio']
|
130 |
st.audio(audio.data, format="audio/wav", start_time=0)
|
131 |
|