Commit
·
d7256dc
1
Parent(s):
f724e0a
Fix wrong model title
Browse files
app.py
CHANGED
|
@@ -716,6 +716,8 @@ class TransformersTimelineParser:
|
|
| 716 |
|
| 717 |
for line in lines:
|
| 718 |
line = line.strip()
|
|
|
|
|
|
|
| 719 |
if line.startswith("# ") and not line.startswith("# Overview"):
|
| 720 |
title = line[2:].strip()
|
| 721 |
return title
|
|
|
|
| 716 |
|
| 717 |
for line in lines:
|
| 718 |
line = line.strip()
|
| 719 |
+
if line.startswith("```python"):
|
| 720 |
+
break
|
| 721 |
if line.startswith("# ") and not line.startswith("# Overview"):
|
| 722 |
title = line[2:].strip()
|
| 723 |
return title
|