Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def upload_visibility(radio):
|
|
38 |
|
39 |
|
40 |
|
41 |
-
|
42 |
|
43 |
def get_predefined_dataset(dataset_name):
|
44 |
dataset = load_dataset(dataset_name, split = "train")
|
@@ -112,10 +112,7 @@ def main():
|
|
112 |
value='yahma/alpaca-cleaned',
|
113 |
visible=True)
|
114 |
dataset_predefined_load = gr.Button("Upload Dataset")
|
115 |
-
|
116 |
-
file_types=[".csv",".jsonl", ".txt"],
|
117 |
-
visible=False)
|
118 |
-
|
119 |
data_field = gr.Textbox(label="Dataset Training Field",
|
120 |
value=conf['model']['general']["dataset_text_field"])
|
121 |
|
@@ -140,6 +137,11 @@ def main():
|
|
140 |
outputs=data_snippet)
|
141 |
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
##### Model Parameter Inputs #####
|
144 |
gr.Markdown("### Model Parameter Selection")
|
145 |
# Parameters
|
|
|
38 |
|
39 |
|
40 |
|
41 |
+
from datasets import load_dataset
|
42 |
|
43 |
def get_predefined_dataset(dataset_name):
|
44 |
dataset = load_dataset(dataset_name, split = "train")
|
|
|
112 |
value='yahma/alpaca-cleaned',
|
113 |
visible=True)
|
114 |
dataset_predefined_load = gr.Button("Upload Dataset")
|
115 |
+
file_output = gr.File(visible=False)
|
|
|
|
|
|
|
116 |
data_field = gr.Textbox(label="Dataset Training Field",
|
117 |
value=conf['model']['general']["dataset_text_field"])
|
118 |
|
|
|
137 |
outputs=data_snippet)
|
138 |
|
139 |
|
140 |
+
|
141 |
+
|
142 |
+
|
143 |
+
|
144 |
+
|
145 |
##### Model Parameter Inputs #####
|
146 |
gr.Markdown("### Model Parameter Selection")
|
147 |
# Parameters
|