| 1 |
<?php |
| 2 |
$plugin_data = get_plugin_data( QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '\qcld-wpwbot.php' ); |
| 3 |
$plugin_name = $plugin_data['Name']; |
| 4 |
if(($plugin_name == 'WPBot Pro Wordpress Chatbot (Professional)') || ($plugin_name == 'WPBot Pro Wordpress Chatbot (Master)') || (function_exists('get_openaiaddon_valid_license') && get_openaiaddon_valid_license())){ |
| 5 |
?> |
| 6 |
<div class="row"> |
| 7 |
<div class="col-md-12"> |
| 8 |
<form class="file_form"> |
| 9 |
<div class="success-message alert alert-info"></div> |
| 10 |
<div class="error-message alert alert-danger"></div> |
| 11 |
<input type="file" (change)="fileEvent($event)" class="inputfile" id="openfileinput" style="display:none"/> |
| 12 |
<label for="openfileinput" class="huge ui grey button"> |
| 13 |
<i class="fa fa-upload"></i> |
| 14 |
Upload JSONL |
| 15 |
</label> |
| 16 |
</form> |
| 17 |
</br> |
| 18 |
<a href="https://wpbot.pro/myfile.jsonl" download><?php esc_html_e( 'Right click and Save the Example jsonl file','openai_addon');?></a> |
| 19 |
<div class="table-responsive"> |
| 20 |
<table class="table table-striped table-bordered"> |
| 21 |
<thead><tr><td> <?php esc_html_e( 'File name','openai_addon'); ?></td><td><?php esc_html_e( 'File id','openai_addon');?></td><td><?php esc_html_e( 'Action','openai_addon');?></td></tr></thead> |
| 22 |
<tbody id="openaiFileList"> |
| 23 |
|
| 24 |
</tbody> |
| 25 |
</table> |
| 26 |
</div> |
| 27 |
<div class="my-5"> |
| 28 |
<h2><?php esc_html_e( 'Fine Tuned Models List','openai_addon');?></br></h2> |
| 29 |
</div> |
| 30 |
<div class="table-responsive"> |
| 31 |
<table class="table table-striped table-bordered"> |
| 32 |
<thead><tr><td><?php esc_html_e( 'FT id','openai_addon');?></td><td><?php esc_html_e( 'FT Model','openai_addon');?></td><td><?php esc_html_e( 'Status','openai_addon');?> </td><td><?php esc_html_e( 'File Name','openai_addon');?></td><td> <?php esc_html_e( 'File Id','openai_addon');?></td></tr></thead> |
| 33 |
<tbody id="openaiFTList"> |
| 34 |
|
| 35 |
</tbody> |
| 36 |
</table> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<?php } else { ?> |
| 41 |
<div class="row"> |
| 42 |
<div class="col-md-12"> |
| 43 |
<?php |
| 44 |
esc_html_e('Fine tuning and training is available with the WPBot Pro Professional and Master Licenses'); |
| 45 |
|
| 46 |
} |
| 47 |
|
| 48 |
?> |
| 49 |
</div> </div> |