Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
mrJimed committed Nov 15, 2024
1 parent a242a6b commit 475219f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from transformers import AutoImageProcessor, AutoModelForImageClassification
import pandas as pd
import streamlit as st
from PIL import Image
from io import BytesIO
import streamlit as st
import pandas as pd

from transformers import AutoImageProcessor, AutoModelForImageClassification

processor = AutoImageProcessor.from_pretrained("microsoft/swin-tiny-patch4-window7-224")
model = AutoModelForImageClassification.from_pretrained(
Expand Down Expand Up @@ -63,7 +62,6 @@ def select_options():


def titanic_data(df, status_option, value_option):

# Преобразование статуса в значения для фильтрации
if status_option == "Спасенные":
survived_value = 1
Expand Down Expand Up @@ -93,7 +91,7 @@ def titanic_data(df, status_option, value_option):
"Пол": ["Мужчины", "Женщины"],
"Процент": [round(male_percentage, 2), round(female_percentage, 2)],
}

return results


Expand Down

0 comments on commit 475219f

Please sign in to comment.