Update app.py
Browse files
app.py
CHANGED
@@ -437,7 +437,7 @@ with gr.Blocks() as demo:
|
|
437 |
outputs=gr.Textbox(label="Fine-tuning Status", interactive=False),
|
438 |
title="⚙️ Fine-tuning (Optional)",
|
439 |
description="This section allows you to fine-tune the custom R1 model on a small subset of the ServiceNow dataset. This step is optional but can potentially improve the model's performance on ServiceNow-related tasks. **Note:** This process may take up to 5 minutes.",
|
440 |
-
|
441 |
),
|
442 |
gr.Interface(
|
443 |
fn=predict,
|
@@ -451,7 +451,7 @@ with gr.Blocks() as demo:
|
|
451 |
outputs=gr.Textbox(label="Custom R1 Output", lines=8, interactive=False),
|
452 |
title="✍️ Direct Generation",
|
453 |
description="Enter a prompt to generate text directly using the custom R1 model. This is standard text generation without retrieval augmentation.",
|
454 |
-
|
455 |
),
|
456 |
gr.Interface(
|
457 |
fn=compare_models,
|
@@ -468,7 +468,7 @@ with gr.Blocks() as demo:
|
|
468 |
],
|
469 |
title="🆚 Model Comparison",
|
470 |
description="Enter a prompt to compare the text generation of your fine-tuned custom R1 model with the official DeepSeek-R1-Distill-Llama-8B model.",
|
471 |
-
|
472 |
),
|
473 |
gr.ChatInterface(
|
474 |
fn=chat_rag,
|
@@ -491,5 +491,4 @@ with gr.Blocks() as demo:
|
|
491 |
).render():
|
492 |
pass # No need for extra elements outside the tabs now
|
493 |
|
494 |
-
|
495 |
demo.launch()
|
|
|
437 |
outputs=gr.Textbox(label="Fine-tuning Status", interactive=False),
|
438 |
title="⚙️ Fine-tuning (Optional)",
|
439 |
description="This section allows you to fine-tune the custom R1 model on a small subset of the ServiceNow dataset. This step is optional but can potentially improve the model's performance on ServiceNow-related tasks. **Note:** This process may take up to 5 minutes.",
|
440 |
+
submit_btn="🚀 Start Fine-tuning (QLoRA)" # Changed from submit_button_text to submit_btn
|
441 |
),
|
442 |
gr.Interface(
|
443 |
fn=predict,
|
|
|
451 |
outputs=gr.Textbox(label="Custom R1 Output", lines=8, interactive=False),
|
452 |
title="✍️ Direct Generation",
|
453 |
description="Enter a prompt to generate text directly using the custom R1 model. This is standard text generation without retrieval augmentation.",
|
454 |
+
submit_btn="✨ Generate Text" # Changed from submit_button_text to submit_btn
|
455 |
),
|
456 |
gr.Interface(
|
457 |
fn=compare_models,
|
|
|
468 |
],
|
469 |
title="🆚 Model Comparison",
|
470 |
description="Enter a prompt to compare the text generation of your fine-tuned custom R1 model with the official DeepSeek-R1-Distill-Llama-8B model.",
|
471 |
+
submit_btn="⚖️ Compare Models" # Changed from submit_button_text to submit_btn
|
472 |
),
|
473 |
gr.ChatInterface(
|
474 |
fn=chat_rag,
|
|
|
491 |
).render():
|
492 |
pass # No need for extra elements outside the tabs now
|
493 |
|
|
|
494 |
demo.launch()
|