Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
3fe2f408
Unverified
Commit
3fe2f408
authored
Nov 08, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Nov 08, 2023
Browse files
Merge pull request #82 from ollama-webui/dev
doc: demo gif
parents
b8278f81
9d06b7ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
demo.gif
demo.gif
+0
-0
src/routes/+page.svelte
src/routes/+page.svelte
+9
-10
No files found.
demo.gif
View replaced file @
b8278f81
View file @
3fe2f408
1.12 MB
|
W:
|
H:
2.17 MB
|
W:
|
H:
2-up
Swipe
Onion skin
src/routes/+page.svelte
View file @
3fe2f408
...
@@ -123,7 +123,10 @@
...
@@ -123,7 +123,10 @@
topBarDiv
.
style
.
borderTopLeftRadius
=
'
8px
'
;
topBarDiv
.
style
.
borderTopLeftRadius
=
'
8px
'
;
let
langDiv
=
document
.
createElement
(
'
div
'
);
let
langDiv
=
document
.
createElement
(
'
div
'
);
langDiv
.
textContent
=
code
?.
className
.
split
(
'
'
)[
0
].
slice
(
9
);
let
codeClassNames
=
code
?.
className
.
split
(
'
'
);
langDiv
.
textContent
=
codeClassNames
[
0
]
===
'
hljs
'
?
codeClassNames
[
1
].
slice
(
9
)
:
codeClassNames
[
0
].
slice
(
9
);
langDiv
.
style
.
color
=
'
white
'
;
langDiv
.
style
.
color
=
'
white
'
;
langDiv
.
style
.
margin
=
'
4px
'
;
langDiv
.
style
.
margin
=
'
4px
'
;
langDiv
.
style
.
fontSize
=
'
0.75rem
'
;
langDiv
.
style
.
fontSize
=
'
0.75rem
'
;
...
@@ -771,7 +774,7 @@
...
@@ -771,7 +774,7 @@
<svelte:window
<svelte:window
on:scroll=
{(e)
=
>
{
on:scroll=
{(e)
=
>
{
autoScroll = window.innerHeight + window.scrollY >= document.body.offsetHeight -
3
0;
autoScroll = window.innerHeight + window.scrollY >= document.body.offsetHeight -
4
0;
}}
}}
/>
/>
...
@@ -850,16 +853,12 @@
...
@@ -850,16 +853,12 @@
<div
class=
" h-full mt-10 mb-32 w-full flex flex-col"
>
<div
class=
" h-full mt-10 mb-32 w-full flex flex-col"
>
{#if messages.length == 0}
{#if messages.length == 0}
<div
class=
"m-auto text-center max-w-md pb-
32
px-2"
>
<div
class=
"m-auto text-center max-w-md pb-
56
px-2"
>
<div
class=
"flex justify-center mt-8"
>
<div
class=
"flex justify-center mt-8"
>
<img
src=
"/ollama.png"
class=
"w-16 invert-[80%]"
/>
<img
src=
"/ollama.png"
class=
" w-16 invert-[10%] dark:invert-[100%] rounded-full"
/>
</div>
<div
class=
"mt-6 text-3xl text-gray-400 dark:text-gray-500 font-semibold"
>
Get up and running with large language models, locally.
</div>
</div>
<div
class=
" mt-1 text-2xl text-gray-800 dark:text-gray-100 font-semibold"
>
<div
class=
" my-4 text-gray-300 dark:text-gray-600"
>
How can I help you today?
Run Llama 2, Code Llama, and other models.
<br
/>
Customize and create your own.
</div>
</div>
</div>
</div>
{:else}
{:else}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment