apolinario commited on
Commit
29ed2dd
·
1 Parent(s): 0ac7f78

bring back the normal run

Browse files
Files changed (1) hide show
  1. ui/src/components/HFJobsWorkflow.tsx +15 -12
ui/src/components/HFJobsWorkflow.tsx CHANGED
@@ -500,25 +500,29 @@ export default function HFJobsWorkflow({ jobConfig, onComplete, hackathonEligibl
500
  {hackathonEligible && (
501
  <div className="space-y-3">
502
  <Checkbox
503
- label="Participate in LoRA Frenzi"
504
  checked={participateHackathon}
505
  onChange={value => {
506
  setParticipationTouched(true);
507
  setParticipateHackathon(value);
508
  }}
509
  />
510
- <ul className="text-xs text-gray-400 space-y-1 pl-4 list-disc">
511
- <li>Maximum 5,000 training steps per run</li>
512
- <li>Jobs longer than 6 hours will time out</li>
513
- <li>Train only one LoRA simultaneously</li>
514
- <li>Do not train on likenesses without consent or NSFW content</li>
515
- </ul>
 
 
516
  </div>
517
  )}
518
  <p className="text-sm text-gray-400">
519
- To continue, accept the rules above and we'll validate your Hugging Face token.
 
 
520
  </p>
521
-
522
  {validationResult && (
523
  <div className="p-3 bg-green-900/20 border border-green-700 rounded">
524
  <p className="text-green-400">
@@ -531,12 +535,11 @@ export default function HFJobsWorkflow({ jobConfig, onComplete, hackathonEligibl
531
  onClick={validateToken}
532
  disabled={
533
  loading ||
534
- !(authToken || settings.HF_TOKEN) ||
535
- (hackathonEligible && !participateHackathon)
536
  }
537
  className="w-full px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded disabled:opacity-50"
538
  >
539
- {loading ? 'Validating...' : 'I accept the rules, get started'}
540
  </Button>
541
  </div>
542
  </Card>
 
500
  {hackathonEligible && (
501
  <div className="space-y-3">
502
  <Checkbox
503
+ label="Participate in LoRA Frenzi (optional)"
504
  checked={participateHackathon}
505
  onChange={value => {
506
  setParticipationTouched(true);
507
  setParticipateHackathon(value);
508
  }}
509
  />
510
+ {participateHackathon && (
511
+ <ul className="text-xs text-gray-400 space-y-1 pl-4 list-disc">
512
+ <li>Maximum 5,000 training steps per run</li>
513
+ <li>Jobs longer than 6 hours will time out</li>
514
+ <li>Train only one LoRA simultaneously</li>
515
+ <li>Do not train on likenesses without consent or NSFW content</li>
516
+ </ul>
517
+ )}
518
  </div>
519
  )}
520
  <p className="text-sm text-gray-400">
521
+ {hackathonEligible && participateHackathon
522
+ ? "To continue, accept the rules above and we'll validate your Hugging Face token."
523
+ : "Click below to validate your Hugging Face token and start training."}
524
  </p>
525
+
526
  {validationResult && (
527
  <div className="p-3 bg-green-900/20 border border-green-700 rounded">
528
  <p className="text-green-400">
 
535
  onClick={validateToken}
536
  disabled={
537
  loading ||
538
+ !(authToken || settings.HF_TOKEN)
 
539
  }
540
  className="w-full px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded disabled:opacity-50"
541
  >
542
+ {loading ? 'Validating...' : (hackathonEligible && participateHackathon ? 'I accept the rules, get started' : 'Get started')}
543
  </Button>
544
  </div>
545
  </Card>