muffin2006 commited on
Commit
40c94b6
Β·
verified Β·
1 Parent(s): 16de5af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -113,7 +113,7 @@ def process_ticket_ui(text, difficulty):
113
  return f"❌ Error: {str(e)}", "", "", "", "", ""
114
 
115
  # =========================
116
- # 🎨 UI DESIGN
117
  # =========================
118
 
119
  custom_css = """
@@ -122,7 +122,7 @@ body {
122
  }
123
 
124
  .gradio-container {
125
- font-family: 'Poppins', sans-serif;
126
  }
127
 
128
  h1, h2 {
@@ -131,12 +131,12 @@ h1, h2 {
131
  }
132
 
133
  textarea, input {
134
- border-radius: 12px !important;
135
  }
136
 
137
  button {
138
- border-radius: 12px !important;
139
- transition: all 0.3s ease;
140
  }
141
 
142
  button:hover {
@@ -144,10 +144,10 @@ button:hover {
144
  }
145
  """
146
 
147
- with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
148
 
149
  gr.Markdown("# πŸ€– AI Ticket Intelligence System")
150
- gr.Markdown("### Smart β€’ Fast β€’ Hackathon Ready πŸš€")
151
 
152
  # -------------------------
153
  # πŸ€– AGENT
@@ -213,7 +213,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
213
  """)
214
 
215
  # =========================
216
- # πŸš€ RUN (HF FIXED)
217
  # =========================
218
  if __name__ == "__main__":
219
- demo.launch(share=True)
 
113
  return f"❌ Error: {str(e)}", "", "", "", "", ""
114
 
115
  # =========================
116
+ # 🎨 UI DESIGN (NO THEME BUG)
117
  # =========================
118
 
119
  custom_css = """
 
122
  }
123
 
124
  .gradio-container {
125
+ font-family: Arial, sans-serif;
126
  }
127
 
128
  h1, h2 {
 
131
  }
132
 
133
  textarea, input {
134
+ border-radius: 10px !important;
135
  }
136
 
137
  button {
138
+ border-radius: 10px !important;
139
+ transition: 0.3s;
140
  }
141
 
142
  button:hover {
 
144
  }
145
  """
146
 
147
+ with gr.Blocks(css=custom_css) as demo:
148
 
149
  gr.Markdown("# πŸ€– AI Ticket Intelligence System")
150
+ gr.Markdown("### Smart β€’ Fast β€’ Stable πŸš€")
151
 
152
  # -------------------------
153
  # πŸ€– AGENT
 
213
  """)
214
 
215
  # =========================
216
+ # πŸš€ RUN (FINAL FIX)
217
  # =========================
218
  if __name__ == "__main__":
219
+ demo.launch(server_name="0.0.0.0", share=True)