ssboost commited on
Commit
1525e04
·
verified ·
1 Parent(s): e97556e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import pandas as pd
3
  import openpyxl
@@ -37,6 +38,7 @@ custom_css = os.getenv('CUSTOM_CSS', '''
37
  --border-radius: 18px;
38
  --shadow: 0 8px 30px rgba(251, 127, 13, 0.08);
39
  }
 
40
  body {
41
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
42
  background-color: var(--background-color);
@@ -45,12 +47,14 @@ body {
45
  margin: 0;
46
  padding: 0;
47
  }
 
48
  .gradio-container {
49
  width: 100%;
50
  margin: 0 auto;
51
  padding: 20px;
52
  background-color: var(--background-color);
53
  }
 
54
  .custom-header {
55
  background: #FF7F00;
56
  padding: 2rem;
@@ -59,17 +63,20 @@ body {
59
  box-shadow: var(--shadow);
60
  text-align: center;
61
  }
 
62
  .custom-header h1 {
63
  margin: 0;
64
  font-size: 2.5rem;
65
  font-weight: 700;
66
  color: black;
67
  }
 
68
  .custom-header p {
69
  margin: 10px 0 0;
70
  font-size: 1.2rem;
71
  color: black;
72
  }
 
73
  .custom-frame {
74
  background-color: var(--card-bg);
75
  border: 1px solid rgba(0, 0, 0, 0.04);
@@ -78,6 +85,7 @@ body {
78
  margin: 10px 0;
79
  box-shadow: var(--shadow);
80
  }
 
81
  .custom-button {
82
  border-radius: 30px !important;
83
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
@@ -88,10 +96,12 @@ body {
88
  box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25);
89
  transition: transform 0.3s ease;
90
  }
 
91
  .custom-button:hover {
92
  transform: translateY(-2px);
93
  box-shadow: 0 6px 12px rgba(251, 127, 13, 0.3);
94
  }
 
95
  .custom-title {
96
  font-size: 28px;
97
  font-weight: bold;
@@ -100,14 +110,17 @@ body {
100
  border-bottom: 2px solid var(--primary-color);
101
  padding-bottom: 5px;
102
  }
 
103
  .gr-tabs-panel {
104
  background-color: var(--background-color) !important;
105
  box-shadow: none !important;
106
  }
 
107
  .custom-section-group {
108
  background-color: var(--background-color) !important;
109
  box-shadow: none !important;
110
  }
 
111
  .gr-textbox textarea,
112
  .gr-textbox input {
113
  border-radius: 12px !important;
@@ -115,21 +128,25 @@ body {
115
  font-size: 14px;
116
  transition: border-color 0.3s ease;
117
  }
 
118
  .gr-textbox textarea:focus,
119
  .gr-textbox input:focus {
120
  border-color: var(--primary-color) !important;
121
  box-shadow: 0 0 0 3px rgba(251, 127, 13, 0.1) !important;
122
  }
 
123
  .gr-file {
124
  border-radius: var(--border-radius) !important;
125
  border: 2px dashed var(--primary-color) !important;
126
  background-color: rgba(251, 127, 13, 0.05) !important;
127
  transition: all 0.3s ease;
128
  }
 
129
  .gr-file:hover {
130
  background-color: rgba(251, 127, 13, 0.1) !important;
131
  border-color: var(--secondary-color) !important;
132
  }
 
133
  @media (max-width: 768px) {
134
  .gradio-container {
135
  padding: 10px;
@@ -606,4 +623,5 @@ if __name__ == "__main__":
606
  server_name="0.0.0.0",
607
  server_port=7860,
608
  show_error=True,
609
- debug=False
 
 
1
+ #app.py
2
  import gradio as gr
3
  import pandas as pd
4
  import openpyxl
 
38
  --border-radius: 18px;
39
  --shadow: 0 8px 30px rgba(251, 127, 13, 0.08);
40
  }
41
+
42
  body {
43
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
44
  background-color: var(--background-color);
 
47
  margin: 0;
48
  padding: 0;
49
  }
50
+
51
  .gradio-container {
52
  width: 100%;
53
  margin: 0 auto;
54
  padding: 20px;
55
  background-color: var(--background-color);
56
  }
57
+
58
  .custom-header {
59
  background: #FF7F00;
60
  padding: 2rem;
 
63
  box-shadow: var(--shadow);
64
  text-align: center;
65
  }
66
+
67
  .custom-header h1 {
68
  margin: 0;
69
  font-size: 2.5rem;
70
  font-weight: 700;
71
  color: black;
72
  }
73
+
74
  .custom-header p {
75
  margin: 10px 0 0;
76
  font-size: 1.2rem;
77
  color: black;
78
  }
79
+
80
  .custom-frame {
81
  background-color: var(--card-bg);
82
  border: 1px solid rgba(0, 0, 0, 0.04);
 
85
  margin: 10px 0;
86
  box-shadow: var(--shadow);
87
  }
88
+
89
  .custom-button {
90
  border-radius: 30px !important;
91
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
 
96
  box-shadow: 0 4px 8px rgba(251, 127, 13, 0.25);
97
  transition: transform 0.3s ease;
98
  }
99
+
100
  .custom-button:hover {
101
  transform: translateY(-2px);
102
  box-shadow: 0 6px 12px rgba(251, 127, 13, 0.3);
103
  }
104
+
105
  .custom-title {
106
  font-size: 28px;
107
  font-weight: bold;
 
110
  border-bottom: 2px solid var(--primary-color);
111
  padding-bottom: 5px;
112
  }
113
+
114
  .gr-tabs-panel {
115
  background-color: var(--background-color) !important;
116
  box-shadow: none !important;
117
  }
118
+
119
  .custom-section-group {
120
  background-color: var(--background-color) !important;
121
  box-shadow: none !important;
122
  }
123
+
124
  .gr-textbox textarea,
125
  .gr-textbox input {
126
  border-radius: 12px !important;
 
128
  font-size: 14px;
129
  transition: border-color 0.3s ease;
130
  }
131
+
132
  .gr-textbox textarea:focus,
133
  .gr-textbox input:focus {
134
  border-color: var(--primary-color) !important;
135
  box-shadow: 0 0 0 3px rgba(251, 127, 13, 0.1) !important;
136
  }
137
+
138
  .gr-file {
139
  border-radius: var(--border-radius) !important;
140
  border: 2px dashed var(--primary-color) !important;
141
  background-color: rgba(251, 127, 13, 0.05) !important;
142
  transition: all 0.3s ease;
143
  }
144
+
145
  .gr-file:hover {
146
  background-color: rgba(251, 127, 13, 0.1) !important;
147
  border-color: var(--secondary-color) !important;
148
  }
149
+
150
  @media (max-width: 768px) {
151
  .gradio-container {
152
  padding: 10px;
 
623
  server_name="0.0.0.0",
624
  server_port=7860,
625
  show_error=True,
626
+ debug=False
627
+ )