IlPakoZ commited on
Commit
69e3309
·
verified ·
1 Parent(s): 3a5fb1d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -32
app.py CHANGED
@@ -18,37 +18,6 @@ from PIL import Image, ImageDraw, ImageFont
18
  logging.basicConfig(level=logging.INFO)
19
  logger = logging.getLogger(__name__)
20
 
21
- css = """
22
- /* Force tab container to resize dynamically */
23
- .tab-nav + div {
24
- height: auto !important;
25
- min-height: 0 !important;
26
- }
27
-
28
- /* Ensure tab content containers resize properly */
29
- .tabitem {
30
- height: auto !important;
31
- min-height: 0 !important;
32
- }
33
-
34
- /* Fix for gradio column heights */
35
- .gradio-column {
36
- height: auto !important;
37
- min-height: 0 !important;
38
- }
39
-
40
- /* Ensure blocks container resizes */
41
- .contain {
42
- height: auto !important;
43
- min-height: 0 !important;
44
- }
45
-
46
- /* Fix for image components that might be causing height issues */
47
- .image-container {
48
- height: auto !important;
49
- }
50
- """
51
-
52
  def create_placeholder_image(width=600, height=400, text="No visualization available", bg_color=(0, 0, 0, 0)):
53
  """
54
  Create a transparent placeholder image with text
@@ -392,7 +361,7 @@ def load_model_wrapper(model_path):
392
  return "Failed to load model. Check the path and files."
393
 
394
  # Create Gradio interface
395
- with gr.Blocks(title="Drug-Target Interaction Predictor", theme=gr.themes.Soft(), css=css) as demo:
396
  gr.HTML("""
397
  <div style="text-align: center; margin-bottom: 30px;">
398
  <h1 style="color: #2E86AB; font-size: 2.5em; margin-bottom: 10px;">
 
18
  logging.basicConfig(level=logging.INFO)
19
  logger = logging.getLogger(__name__)
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  def create_placeholder_image(width=600, height=400, text="No visualization available", bg_color=(0, 0, 0, 0)):
22
  """
23
  Create a transparent placeholder image with text
 
361
  return "Failed to load model. Check the path and files."
362
 
363
  # Create Gradio interface
364
+ with gr.Blocks(title="Drug-Target Interaction Predictor", theme=gr.themes.Soft()) as demo:
365
  gr.HTML("""
366
  <div style="text-align: center; margin-bottom: 30px;">
367
  <h1 style="color: #2E86AB; font-size: 2.5em; margin-bottom: 10px;">