Spaces:
Running
on
Zero
Running
on
Zero
slslslrhfem
commited on
Commit
ยท
8a4fa1b
1
Parent(s):
693d2c7
change color for darkmode
Browse files
app.py
CHANGED
|
@@ -75,16 +75,16 @@ def detect_ai_audio(audio_file):
|
|
| 75 |
except Exception as e:
|
| 76 |
return f"<div>Error processing audio: {str(e)}</div>"
|
| 77 |
|
| 78 |
-
#
|
| 79 |
custom_css = """
|
| 80 |
-
.gradio-container {
|
| 81 |
-
.main-container {
|
| 82 |
-
h1 { text-align: center !important; font-size: 2.5em !important; font-weight: 700 !important; margin-bottom: 15px !important;
|
| 83 |
-
.gradio-markdown p { text-align: center !important; font-size: 1.1em !important;
|
| 84 |
-
.upload-container {
|
| 85 |
-
.output-container {
|
| 86 |
-
.gr-button {
|
| 87 |
-
.gr-button:hover {
|
| 88 |
@media (max-width: 768px) {
|
| 89 |
h1 { font-size: 2em !important; }
|
| 90 |
.main-container { margin: 10px !important; padding: 20px !important; }
|
|
@@ -127,4 +127,4 @@ demo = gr.Interface(
|
|
| 127 |
|
| 128 |
|
| 129 |
if __name__ == "__main__":
|
| 130 |
-
demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False, show_error=True)
|
|
|
|
| 75 |
except Exception as e:
|
| 76 |
return f"<div>Error processing audio: {str(e)}</div>"
|
| 77 |
|
| 78 |
+
# ๋คํฌ๋ชจ๋ ํธํ CSS
|
| 79 |
custom_css = """
|
| 80 |
+
.gradio-container { min-height: 100vh; }
|
| 81 |
+
.main-container { border-radius: 15px !important; margin: 20px auto !important; padding: 30px !important; max-width: 800px; }
|
| 82 |
+
h1 { text-align: center !important; font-size: 2.5em !important; font-weight: 700 !important; margin-bottom: 15px !important; }
|
| 83 |
+
.gradio-markdown p { text-align: center !important; font-size: 1.1em !important; margin-bottom: 20px !important; }
|
| 84 |
+
.upload-container { border-radius: 10px !important; padding: 15px !important; margin-bottom: 20px !important; }
|
| 85 |
+
.output-container { border-radius: 10px !important; padding: 15px !important; min-height: 150px !important; }
|
| 86 |
+
.gr-button { border-radius: 20px !important; padding: 10px 25px !important; font-weight: 600 !important; transition: all 0.2s ease !important; }
|
| 87 |
+
.gr-button:hover { transform: translateY(-2px) !important; }
|
| 88 |
@media (max-width: 768px) {
|
| 89 |
h1 { font-size: 2em !important; }
|
| 90 |
.main-container { margin: 10px !important; padding: 20px !important; }
|
|
|
|
| 127 |
|
| 128 |
|
| 129 |
if __name__ == "__main__":
|
| 130 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False, show_error=True)
|