Skip to content

Commit

Permalink
Merge pull request #1817 from hlohaus/bugfix
Browse files Browse the repository at this point in the history
Styling in the gui, GenerateSpeech and SpeechRecognition, Issues with You Provider
  • Loading branch information
hlohaus authored Apr 10, 2024
2 parents 00951eb + 13a0903 commit 48a4f13
Show file tree
Hide file tree
Showing 9 changed files with 183 additions and 106 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ local.py
*.gguf
image.py
.buildozer
hardir
hardir
node_modules
models
projects/windows/g4f
2 changes: 0 additions & 2 deletions g4f/Provider/You.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from .helper import format_prompt
from ..image import ImageResponse, to_bytes, is_accepted_format
from ..requests import StreamSession, FormData, raise_for_status
from ..errors import MissingRequirementsError

from .you.har_file import get_dfp_telemetry_id

class You(AsyncGeneratorProvider, ProviderModelMixin):
Expand Down
40 changes: 27 additions & 13 deletions g4f/gui/client/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ body {
}

.conversations .convo .left {
width: 100%;
cursor: pointer;
display: flex;
align-items: center;
Expand All @@ -226,9 +227,11 @@ body {
.convo-title {
color: var(--colour-3);
font-size: 14px;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
margin-right: 10px;
}

.convo-title .datetime {
Expand Down Expand Up @@ -406,7 +409,7 @@ body {

.count_total {
font-size: 12px;
padding-left: 100px;
padding-left: 25px;
padding-top: 10px;
}

Expand Down Expand Up @@ -646,6 +649,21 @@ select {
width: 160px;
}

#systemPrompt, .settings textarea {
font-size: 15px;
width: 100%;
color: var(--colour-3);
min-height: 50px;
height: 59px;
outline: none;
padding: var(--inner-gap) var(--section-gap);
resize: vertical;
}

#systemPrompt {
padding-left: 35px;
}

@media only screen and (min-width: 40em) {
select {
width: 200px;
Expand All @@ -659,6 +677,9 @@ select {
.settings .bottom_buttons {
flex-direction: row;
}
.count_total {
padding-left: 98px;
}
}

.input-box {
Expand Down Expand Up @@ -836,6 +857,10 @@ ul {
.mobile-sidebar {
display: flex !important;
}

#systemPrompt {
padding-left: 48px;
}
}

.shown {
Expand Down Expand Up @@ -1064,22 +1089,11 @@ a:-webkit-any-link {
border: 1px solid #e4d4ffc9;
}

#systemPrompt, .settings textarea {
font-size: 15px;
width: 100%;
color: var(--colour-3);
min-height: 50px;
height: 59px;
outline: none;
padding: var(--inner-gap) var(--section-gap);
resize: vertical;
}

.settings textarea {
height: 51px;
}

.settings {
.settings, .images {
width: 100%;
display: flex;
flex-direction: column;
Expand Down
Loading

0 comments on commit 48a4f13

Please sign in to comment.