Skip to content

Commit

Permalink
Final Commit OLL
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-nicklaus committed Mar 25, 2024
1 parent 3895ebd commit a24e0aa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Legal Prompt Builder</title>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>

<script type="module" src="https://md-block.verou.me/md-block.js"></script>


<link href="static/style.css" rel="stylesheet">
</head>
<body>
Expand Down Expand Up @@ -232,6 +228,7 @@ <h2 class="text-xl">Entscheid zusammenfassen</h2>
<p class="font-bold">Aktueller Prompt</p>
<textarea x-html="generatePrompt()" id="promptDisplay" class="w-full flex-grow"></textarea>
<button class="border rounded border-black p-2 border-indigo-800 bg-indigo-800 text-white" @click="copyPrompt" x-show="mode === 'noapi'" x-text="copy_text"></button>
<input type="password" x-bind:value="openaikey" @change="e => openaikey = e.target.value" class="p-2 my-2 border rounded border-black h-12" x-show="mode === 'api'" placeholder="OpenAI API Key"/>
<button class="border rounded border-black p-2 border-indigo-800 bg-indigo-800 text-white" @click="askPrompt" x-show="mode === 'api'">Direkt anfragen</button>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
beautifulsoup4==4.12.3
blinker==1.7.0
bs4==0.0.2
cachelib==0.12.0
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
Flask==3.0.2
Flask-Session==0.7.0
idna==3.6
itsdangerous==2.1.2
Jinja2==3.1.3
MarkupSafe==2.1.5
msgspec==0.18.6
requests==2.31.0
soupsieve==2.5
urllib3==2.2.1
Werkzeug==3.0.1
6 changes: 6 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,12 @@ html {
--tw-backdrop-sepia: ;
}

.avatar.placeholder > div {
display: flex;
align-items: center;
justify-content: center;
}

.btn {
display: inline-flex;
height: 3rem;
Expand Down

0 comments on commit a24e0aa

Please sign in to comment.