Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,25 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
with gr.Blocks() as demo:
|
|
|
|
|
5 |
with gr.Tab("sex position classifier for video"):
|
6 |
gr.load("porntech/sex-position-classifier", src="spaces", hf_token=os.environ["PORNTECH_SECRET"])
|
7 |
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
+
DESC = """# Classify sex positions for a video clip
|
5 |
+
|
6 |
+
WARNING! Leave now if you are less than 18 years old!
|
7 |
+
|
8 |
+
* total 10 classes are supported: ["Missionary", "Cowgirl", "Doggystyle", "Side Fucking", "Blowjob", "Titjob", "Pussy Eating", "Fingering", "Handjob", "Other"]
|
9 |
+
* "Other" means other classes such as SFW like kissing or talking or NSFW sucking tits.
|
10 |
+
* Input video should be sexy or NSFW ones, otherwise the prediction is undefined.
|
11 |
+
* Input should be .mp4 with less than 10 seconds, prediction for longer video clips might be ok but not guaranteed. Currently, gif file can not be input, open an issue if it is a problem.
|
12 |
+
* The top-1 accuracy is around 90% for a validation set of ~7000 video clips.
|
13 |
+
* More classes such as footjob and higher accuracy are under development.
|
14 |
+
* A sample SFW [video](https://www.youtube.com/watch?v=giy37cf1msI) is in youtube and you can download this video by pasting the youtube url into this [website](https://en.savefrom.net/391GA/), you can experience this demo with this video. It is predicted corrected as "Other".
|
15 |
+
* I won't provide any NSFW samples, find by yourself.
|
16 |
+
* This repo is for video classification, for sex position classification for image, see [this repo](https://huggingface.co/porntech/sex-position) of mine.
|
17 |
+
|
18 |
+
I'm developping more AI models for sexy/NSFW classification, if you are interested, feel free to contact [email protected]"""
|
19 |
+
|
20 |
with gr.Blocks() as demo:
|
21 |
+
with gr.Row():
|
22 |
+
gr.Markdown(DESC)
|
23 |
with gr.Tab("sex position classifier for video"):
|
24 |
gr.load("porntech/sex-position-classifier", src="spaces", hf_token=os.environ["PORNTECH_SECRET"])
|
25 |
|