Spaces:
Runtime error
Runtime error
Fix errors in load data
Browse files- app.py +1 -0
- spanish_medica_llm.py +1 -0
app.py
CHANGED
@@ -66,6 +66,7 @@ with gr.Blocks() as demo:
|
|
66 |
with gr.Row():
|
67 |
inp = gr.Textbox(placeholder="What is your name?")
|
68 |
out = gr.Textbox()
|
|
|
69 |
btn_response = gr.Button("Generate Response")
|
70 |
btn_response.click(fn=generate_model, inputs=inp, outputs=out)
|
71 |
btn_train = gr.Button("Train Model")
|
|
|
66 |
with gr.Row():
|
67 |
inp = gr.Textbox(placeholder="What is your name?")
|
68 |
out = gr.Textbox()
|
69 |
+
|
70 |
btn_response = gr.Button("Generate Response")
|
71 |
btn_response.click(fn=generate_model, inputs=inp, outputs=out)
|
72 |
btn_train = gr.Button("Train Model")
|
spanish_medica_llm.py
CHANGED
@@ -705,6 +705,7 @@ def run_finnetuning_process():
|
|
705 |
medicalSpanishDataset = medicalSpanishDataset.train_test_split(0.2, seed=203984)
|
706 |
train_dataset, eval_dataset, test_dataset = splitDatasetInTestValid( medicalSpanishDataset )
|
707 |
|
|
|
708 |
base_model = loadBaseModel(HUB_MODEL_ID)
|
709 |
print('Dataset in One ')
|
710 |
print (train_dataset[5])
|
|
|
705 |
medicalSpanishDataset = medicalSpanishDataset.train_test_split(0.2, seed=203984)
|
706 |
train_dataset, eval_dataset, test_dataset = splitDatasetInTestValid( medicalSpanishDataset )
|
707 |
|
708 |
+
|
709 |
base_model = loadBaseModel(HUB_MODEL_ID)
|
710 |
print('Dataset in One ')
|
711 |
print (train_dataset[5])
|