mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-12 12:58:02 -05:00
Cleanup
This commit is contained in:
parent
833bd9b1b7
commit
6940ab47fe
3 changed files with 4 additions and 124 deletions
|
@ -59,7 +59,7 @@ services:
|
|||
PAPERLESS_BASE_URL: 'http://paperless-ngx:8000'
|
||||
PAPERLESS_API_TOKEN: 'your_paperless_api_token'
|
||||
LLM_PROVIDER: 'openai' # or 'ollama'
|
||||
LLM_MODEL: 'gpt-4' # or 'llama2'
|
||||
LLM_MODEL: 'gpt-4o' # or 'llama2'
|
||||
OPENAI_API_KEY: 'your_openai_api_key' # Required if using OpenAI
|
||||
LLM_LANGUAGE: 'English' # Optional, default is 'English'
|
||||
ports:
|
||||
|
@ -77,7 +77,7 @@ If you prefer to run the application manually:
|
|||
1. **Clone the Repository:**
|
||||
|
||||
```bash
|
||||
git clone https://github.com/yourusername/paperless-gpt.git
|
||||
git clone https://github.com/icereed/paperless-gpt.git
|
||||
cd paperless-gpt
|
||||
```
|
||||
|
||||
|
@ -94,7 +94,7 @@ If you prefer to run the application manually:
|
|||
-e PAPERLESS_BASE_URL='http://your_paperless_ngx_url' \
|
||||
-e PAPERLESS_API_TOKEN='your_paperless_api_token' \
|
||||
-e LLM_PROVIDER='openai' \
|
||||
-e LLM_MODEL='gpt-4' \
|
||||
-e LLM_MODEL='gpt-4o' \
|
||||
-e OPENAI_API_KEY='your_openai_api_key' \
|
||||
-e LLM_LANGUAGE='English' \
|
||||
-p 8080:8080 \
|
||||
|
@ -167,4 +167,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|||
|
||||
---
|
||||
|
||||
**Disclaimer:** This project is not affiliated with the official paperless-ngx project. Use at your own discretion.
|
||||
**Disclaimer:** This project is not affiliated with the official paperless-ngx project. Use at your own discretion.
|
||||
|
|
68
index.html
68
index.html
|
@ -1,68 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Paperless-GPT Verarbeiter</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 50px;
|
||||
}
|
||||
button {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-top: 20px;
|
||||
}
|
||||
table, th, td {
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
th {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Paperless-GPT Verarbeiter</h1>
|
||||
<p>Die folgenden Dokumente werden verarbeitet:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Dokument ID</th>
|
||||
<th>Aktueller Titel</th>
|
||||
</tr>
|
||||
{{range .}}
|
||||
<tr>
|
||||
<td>{{.ID}}</td>
|
||||
<td>{{.Title}}</td>
|
||||
</tr>
|
||||
{{else}}
|
||||
<tr>
|
||||
<td colspan="2">Keine Dokumente zu verarbeiten.</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
{{if .}}
|
||||
<form action="/process" method="post">
|
||||
<button type="submit">Dokumente verarbeiten</button>
|
||||
</form>
|
||||
{{end}}
|
||||
</body>
|
||||
</html>
|
52
result.html
52
result.html
|
@ -1,52 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Verarbeitung abgeschlossen</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 50px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-top: 20px;
|
||||
}
|
||||
table, th, td {
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
th {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.success {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Verarbeitung abgeschlossen</h1>
|
||||
<p>Hier ist der Vorher-Nachher-Vergleich der Dokumenttitel:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Dokument ID</th>
|
||||
<th>Alter Titel</th>
|
||||
<th>Neuer Titel</th>
|
||||
</tr>
|
||||
{{range .}}
|
||||
<tr>
|
||||
<td>{{.ID}}</td>
|
||||
<td>{{.Title}}</td>
|
||||
<td>{{.SuggestedTitle}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
<p><a href="/">Zurück zur Hauptseite</a></p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue