Spaces:
Sleeping
Sleeping
HUAWEI
commited on
Commit
•
535de0b
1
Parent(s):
ed27049
iteration 1
Browse files- app.py +13 -0
- combined_parsing.csv +0 -0
- requirements.txt +10 -0
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
st.title('IMBD movies')
|
5 |
+
|
6 |
+
df = pd.read_csv('combined_parsing.csv')
|
7 |
+
|
8 |
+
def show_random_movies():
|
9 |
+
sample_df = df.sample(n=10, random_state=42)
|
10 |
+
st.write(sample_df[['movie_title', 'description']])
|
11 |
+
|
12 |
+
if st.button('Show 10 random movies'):
|
13 |
+
show_random_movies()
|
combined_parsing.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
requirements.txt
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit==1.37.0
|
2 |
+
sentence-transformers==3.0.1
|
3 |
+
Pillow
|
4 |
+
torch==2.4.0
|
5 |
+
transformers==4.44.0
|
6 |
+
torchvision
|
7 |
+
matplotlib
|
8 |
+
joblib
|
9 |
+
pymorphy3
|
10 |
+
scikit-learn
|