Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,9 @@ def textbox_button_visibility(radio):
|
|
31 |
def upload_visibility(radio):
|
32 |
value = radio
|
33 |
if value == "Upload Your Own":
|
34 |
-
return gr.
|
35 |
else:
|
36 |
-
return gr.
|
37 |
|
38 |
|
39 |
|
@@ -50,6 +50,9 @@ def get_uploaded_dataset(file):
|
|
50 |
|
51 |
|
52 |
|
|
|
|
|
|
|
53 |
def train(model_name,
|
54 |
inject_prompt,
|
55 |
dataset_predefined,
|
@@ -120,7 +123,7 @@ def main():
|
|
120 |
#dataset_uploaded_load = gr.UploadButton(label="Upload Dataset (.csv, .jsonl, or .txt)",
|
121 |
# file_types=[".csv",".jsonl", ".txt"],
|
122 |
# visible=False)
|
123 |
-
|
124 |
data_field = gr.Textbox(label="Dataset Training Field",
|
125 |
value=conf['model']['general']["dataset_text_field"])
|
126 |
|
|
|
31 |
def upload_visibility(radio):
|
32 |
value = radio
|
33 |
if value == "Upload Your Own":
|
34 |
+
return gr.File(visible=bool(1)) #make it visible
|
35 |
else:
|
36 |
+
return gr.File(visible=bool(0))
|
37 |
|
38 |
|
39 |
|
|
|
50 |
|
51 |
|
52 |
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
def train(model_name,
|
57 |
inject_prompt,
|
58 |
dataset_predefined,
|
|
|
123 |
#dataset_uploaded_load = gr.UploadButton(label="Upload Dataset (.csv, .jsonl, or .txt)",
|
124 |
# file_types=[".csv",".jsonl", ".txt"],
|
125 |
# visible=False)
|
126 |
+
|
127 |
data_field = gr.Textbox(label="Dataset Training Field",
|
128 |
value=conf['model']['general']["dataset_text_field"])
|
129 |
|