This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<meta name='viewport' content='width=device-width,initial-scale=1.0'> | |
<title>Demo PNG to SVG</title> | |
<style> | |
html,body { | |
padding:0; | |
margin:0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<meta name='viewport' content='width=device-width,initial-scale=1.0'> | |
<title>Demo PNG to SVG</title> | |
<style> | |
html,body { | |
padding:0; | |
margin:0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en' class='notranslate' translate='no'> | |
<head> | |
<meta name='google' content='notranslate' /> | |
<meta http-equiv='Content-Language' content='en' /> | |
<meta charset='UTF-8'> | |
<style> | |
body { | |
padding: 5% 15%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gpt4all; | |
import com.hexadevlabs.gpt4all.LLModel; | |
import java.io.File; | |
import java.nio.file.Paths; | |
public class ChatApplication { | |
private LLModel model; | |
LLModel.GenerationConfig config; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gpt4all.gui; | |
import java.awt.Container; | |
import java.awt.Dimension; | |
import java.awt.Font; | |
import java.awt.event.ActionEvent; | |
import javax.swing.JButton; | |
import javax.swing.JComboBox; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gpt4all; | |
import com.hexadevlabs.gpt4all.LLModel; | |
import java.io.File; | |
import java.nio.file.Paths; | |
public class Application { | |
public static void main(String[] args){ | |
String prompt = "### Human:\nWhat is the meaning of life\n### Assistant:"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gpt4all; | |
import com.hexadevlabs.gpt4all.LLModel; | |
import java.io.File; | |
import java.nio.file.Path; | |
public class Application { | |
public static void main(String[] args){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<meta name='ocr-system' content='tesseract'/> | |
</head> | |
<body> | |
<div class='ocr_page' id='page_1' title='image ""; bbox 0 0 2480 3507; ppageno 0'> | |
<div class='ocr_carea' id='block_1_1' title="bbox 301 311 2176 1586"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import net.sourceforge.tess4j.Tesseract; | |
import net.sourceforge.tess4j.TesseractException; | |
import org.apache.pdfbox.Loader; | |
import org.apache.pdfbox.multipdf.Splitter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import net.sourceforge.tess4j.Tesseract; | |
public class Test { | |
public static void main(String[] args) { | |
Tesseract instance = new Tesseract(); | |
int imageDPI = 300; | |
Path currentRelativePath = Paths.get(""); |
NewerOlder