amitlals commited on
Commit
6c3de67
·
1 Parent(s): 48fb86c

Fix Gradio CSS syntax error and pin Gradio version

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app_gradio.py +1 -11
Dockerfile CHANGED
@@ -29,7 +29,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
29
  RUN pip install --no-cache-dir git+https://github.com/SAP-samples/sap-rpt-1-oss
30
 
31
  # Force Gradio 4.x to be installed LAST (override any conflicting dependencies)
32
- RUN pip install --no-cache-dir --force-reinstall "gradio>=4.0.0"
33
 
34
  # Copy application code
35
  COPY . .
 
29
  RUN pip install --no-cache-dir git+https://github.com/SAP-samples/sap-rpt-1-oss
30
 
31
  # Force Gradio 4.x to be installed LAST (override any conflicting dependencies)
32
+ RUN pip install --no-cache-dir --force-reinstall "gradio==4.44.1"
33
 
34
  # Copy application code
35
  COPY . .
app_gradio.py CHANGED
@@ -917,17 +917,7 @@ def check_playground_embedding_server():
917
 
918
 
919
  # Create Gradio interface with vibrant theme
920
- with gr.Blocks(title="SAP Finance Dashboard", css="""
921
- .gradio-container {
922
- max-width: 1400px !important;
923
- }
924
- h1 {
925
- background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
926
- -webkit-background-clip: text;
927
- -webkit-text-fill-color: transparent;
928
- background-clip: text;
929
- }
930
- """) as app:
931
  gr.HTML("""
932
  <div style='text-align: center; margin-bottom: 20px;'>
933
  <h1 style='font-size: 42px; margin-bottom: 10px; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;'>
 
917
 
918
 
919
  # Create Gradio interface with vibrant theme
920
+ with gr.Blocks(title="SAP Finance Dashboard") as app:
 
 
 
 
 
 
 
 
 
 
921
  gr.HTML("""
922
  <div style='text-align: center; margin-bottom: 20px;'>
923
  <h1 style='font-size: 42px; margin-bottom: 10px; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;'>