fauxpilot-addon / fauxpilot-webclient

PHP/CURL-based web client to evaluate the inference result of Fauxpilot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP/CURL-based web client

PHP/CURL-based web client

Getting started

This section demonstrates the CURL and PHP-based web Client that uses the REST API as a client. Through the following installation procedures, you can quickly request the service and evaluate the processing results.

$ sudo apt -y install php php-common php-pear php-mbstring php-curl  
$ chmod 400 ./conf/config.ini
$ vi ./conf/config.ini
$ php -S 0.0.0.0:5555
$ firefox http://localhost:5555

Screenshot

This section shows the input screen and output screen of the web-based client. If you enter a function containing comments on the web screen and click "submit" button, you can view the execution results of the Fauxpilot server.

  • Input screen

Input Screenshot

  • Output screen

Output Screenshot

About

PHP/CURL-based web client to evaluate the inference result of Fauxpilot

License:Apache License 2.0


Languages

Language:PHP 51.5%Language:Hack 13.7%Language:HTML 12.8%Language:JavaScript 11.1%Language:CSS 10.9%