jannisborn commited on
Commit
69c3e34
1 Parent(s): c564047
Files changed (2) hide show
  1. app.py +6 -6
  2. model_cards/examples.csv +1 -1
app.py CHANGED
@@ -62,9 +62,9 @@ if __name__ == "__main__":
62
  # Load metadata
63
  metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
64
 
65
- examples = pd.read_csv(metadata_root.joinpath("examples.csv"), header=None).fillna(
66
- ""
67
- )
68
  print("Examples: ", examples.values.tolist())
69
 
70
  with open(metadata_root.joinpath("article.md"), "r") as f:
@@ -92,14 +92,14 @@ if __name__ == "__main__":
92
  value="title-abstract",
93
  ),
94
  gr.Textbox(
95
- label="Text prompt",
96
  placeholder="Artificial intelligence and machine learning infrastructure",
97
  lines=5,
98
  ),
99
  gr.Textbox(
100
- label="Secondary text prompt (only for coherence checker)",
101
  placeholder="",
102
- lines=1
103
  ),
104
  gr.Slider(
105
  minimum=5, maximum=1024, value=512, label="Maximal length", step=1
 
62
  # Load metadata
63
  metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
64
 
65
+ examples = pd.read_csv(
66
+ metadata_root.joinpath("examples.csv"), sep="|", header=None
67
+ ).fillna("")
68
  print("Examples: ", examples.values.tolist())
69
 
70
  with open(metadata_root.joinpath("article.md"), "r") as f:
 
92
  value="title-abstract",
93
  ),
94
  gr.Textbox(
95
+ label="Primary Text prompt",
96
  placeholder="Artificial intelligence and machine learning infrastructure",
97
  lines=5,
98
  ),
99
  gr.Textbox(
100
+ label="Secondary text prompt (only coherence checker)",
101
  placeholder="",
102
+ lines=1,
103
  ),
104
  gr.Slider(
105
  minimum=5, maximum=1024, value=512, label="Maximal length", step=1
model_cards/examples.csv CHANGED
@@ -1,5 +1,5 @@
1
  PGTGenerator|title-to-abstract|||Artificial intelligence and machine learning infrastructure||512|50|1.0
2
  PGTGenerator|title-to-abstract|||Artificial intelligence and machine learning infrastructure||756|20|0.95
3
- PGTEditor||abstract||In one step of a method for infusing an [MASK], the infusion fluid is pumped through a fluid delivery line of an infusion system. In another step, measurements are taken with at least one sensor connected to the infusion system. In an additional step, an air determination is determined with at least one processor. The air determination is related to air in the fluid delivery line. The air determination is based on the measurements taken by the at least one sensor. The air determination is further based on: (1) [MASK] information regarding the infusion of the infusion fluid; or (2) multi-channel filtering of the measurements from the at least one sensor or non-linear mapping of the measurements from the at least one sensor; and statistical process control charts applied to the multi-channel filtered measurements or applied to the non-linear mapped measurements.|512|50|1
4
  PGTCoherenceChecker|||title-abstract|Artificial intelligence and machine learning infrastructure|An artificial intelligence and machine learning infrastructure system, including: one or more storage systems comprising, respectively, one or more storage devices; and one or more graphical processing units, wherein the graphical processing units are configured to communicate with the one or more storage systems over a communication fabric; where the one or more storage systems, the one or more graphical processing units, and the communication fabric are implemented within a single chassis.|512|50|1
5
  PGTCoherenceChecker|||title-abstract|Analog image processing|An artificial intelligence and machine learning infrastructure system for image classification, including: one or more storage systems comprising, respectively, one or more storage devices; and one or more graphical processing units, wherein the graphical processing units are configured to communicate with the one or more storage systems over a communication fabric; where the one or more storage systems, the one or more graphical processing units, and the communication fabric are implemented within a single chassis.|512|50|1
 
1
  PGTGenerator|title-to-abstract|||Artificial intelligence and machine learning infrastructure||512|50|1.0
2
  PGTGenerator|title-to-abstract|||Artificial intelligence and machine learning infrastructure||756|20|0.95
3
+ PGTEditor||abstract||In one step of a method for infusing an [MASK], the infusion fluid is pumped through a fluid delivery line of an infusion system. In another step, measurements are taken with at least one sensor connected to the infusion system. In an additional step, an air determination is determined with at least one processor. The air determination is related to air in the fluid delivery line. The air determination is based on the measurements taken by the at least one sensor. The air determination is further based on: (1) [MASK] information regarding the infusion of the infusion fluid; or (2) multi-channel filtering of the measurements from the at least one sensor or non-linear mapping of the measurements from the at least one sensor; and statistical process control charts applied to the multi-channel filtered measurements or applied to the non-linear mapped measurements.||512|50|1
4
  PGTCoherenceChecker|||title-abstract|Artificial intelligence and machine learning infrastructure|An artificial intelligence and machine learning infrastructure system, including: one or more storage systems comprising, respectively, one or more storage devices; and one or more graphical processing units, wherein the graphical processing units are configured to communicate with the one or more storage systems over a communication fabric; where the one or more storage systems, the one or more graphical processing units, and the communication fabric are implemented within a single chassis.|512|50|1
5
  PGTCoherenceChecker|||title-abstract|Analog image processing|An artificial intelligence and machine learning infrastructure system for image classification, including: one or more storage systems comprising, respectively, one or more storage devices; and one or more graphical processing units, wherein the graphical processing units are configured to communicate with the one or more storage systems over a communication fabric; where the one or more storage systems, the one or more graphical processing units, and the communication fabric are implemented within a single chassis.|512|50|1