abril4416 commited on
Commit
bd5963b
·
1 Parent(s): 9f92235

Open interface pages in new tab to avoid frame scroll lock

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -18,6 +18,8 @@ Choose one interface:
18
  - **Logistic Regression** (`week11/interface`)
19
 
20
  Each interface keeps its original sub-page navigation.
 
 
21
  """
22
  )
23
 
@@ -27,7 +29,7 @@ Each interface keeps its original sub-page navigation.
27
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
28
  <h3>Linear Regression</h3>
29
  <p>Week10 interface with NumPy Lab, Gradient Descent Studio, and Step Trainer.</p>
30
- <a href="/gradio_api/file=linear-regression/index.html" target="_self">Open Linear Regression Interface</a>
31
  </div>
32
  """
33
  )
@@ -36,7 +38,7 @@ Each interface keeps its original sub-page navigation.
36
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
37
  <h3>Logistic Regression</h3>
38
  <p>Week11 interface with sigmoid, confusion matrix, and cost-function pages.</p>
39
- <a href="/gradio_api/file=logistic-regression/index.html" target="_self">Open Logistic Regression Interface</a>
40
  </div>
41
  """
42
  )
 
18
  - **Logistic Regression** (`week11/interface`)
19
 
20
  Each interface keeps its original sub-page navigation.
21
+
22
+ If scrolling feels blocked inside the Space frame, open the interface in a new tab.
23
  """
24
  )
25
 
 
29
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
30
  <h3>Linear Regression</h3>
31
  <p>Week10 interface with NumPy Lab, Gradient Descent Studio, and Step Trainer.</p>
32
+ <a href="/gradio_api/file=linear-regression/index.html" target="_blank" rel="noopener noreferrer">Open Linear Regression Interface</a>
33
  </div>
34
  """
35
  )
 
38
  <div style="border:1px solid #ddd;border-radius:12px;padding:16px;">
39
  <h3>Logistic Regression</h3>
40
  <p>Week11 interface with sigmoid, confusion matrix, and cost-function pages.</p>
41
+ <a href="/gradio_api/file=logistic-regression/index.html" target="_blank" rel="noopener noreferrer">Open Logistic Regression Interface</a>
42
  </div>
43
  """
44
  )