Rwhehhehe commited on
Commit
4442059
·
verified ·
1 Parent(s): 07215f3

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +57 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Gfff
3
- emoji: 💻
4
- colorFrom: pink
5
  colorTo: yellow
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: gfff
3
+ emoji: 🐳
4
+ colorFrom: purple
5
  colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,57 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Detector de Intolerância Religiosa</title>
6
+ <style>
7
+ body { font-family: Arial; margin: 30px; }
8
+ h1 { color: #333; }
9
+ #result { margin-top: 20px; padding: 10px; border: 1px solid #ccc; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+
14
+ <h1>Detector de Intolerância Religiosa em Vídeo</h1>
15
+
16
+ <form id="uploadForm">
17
+ <input type="file" id="videoFile" accept="video/*" required><br><br>
18
+ <button type="submit">Analisar Vídeo</button>
19
+ </form>
20
+
21
+ <div id="result"></div>
22
+
23
+ <script>
24
+ const form = document.getElementById('uploadForm');
25
+ const resultDiv = document.getElementById('result');
26
+
27
+ form.addEventListener('submit', async (e) => {
28
+ e.preventDefault();
29
+ const file = document.getElementById('videoFile').files[0];
30
+
31
+ if (!file) {
32
+ alert('Por favor, selecione um vídeo.');
33
+ return;
34
+ }
35
+
36
+ const formData = new FormData();
37
+ formData.append('video', file);
38
+
39
+ resultDiv.innerHTML = 'Analisando vídeo, aguarde...';
40
+
41
+ const response = await fetch('http://localhost:3000/analisar-video', {
42
+ method: 'POST',
43
+ body: formData
44
+ });
45
+
46
+ const data = await response.json();
47
+
48
+ if (data.error) {
49
+ resultDiv.innerHTML = 'Erro: ' + data.error;
50
+ } else {
51
+ resultDiv.innerHTML = `<strong>Resultado:</strong> ${data.resultado}<br><br><strong>Texto transcrito:</strong><br>${data.transcricao}`;
52
+ }
53
+ });
54
+ </script>
55
+
56
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rwhehhehe/gfff" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
57
+ </html>
prompts.txt ADDED
File without changes