diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-02-11 06:59:53 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-02-11 06:59:53 +0100 |
commit | 331826b003fae451c70e17807d1a105af1453413 (patch) | |
tree | fb9c7f61d5ba1834b12965735dd7d0e9616dceec /g4f/gui | |
parent | Fix convert image to jpg in Bing (diff) | |
download | gpt4free-331826b003fae451c70e17807d1a105af1453413.tar gpt4free-331826b003fae451c70e17807d1a105af1453413.tar.gz gpt4free-331826b003fae451c70e17807d1a105af1453413.tar.bz2 gpt4free-331826b003fae451c70e17807d1a105af1453413.tar.lz gpt4free-331826b003fae451c70e17807d1a105af1453413.tar.xz gpt4free-331826b003fae451c70e17807d1a105af1453413.tar.zst gpt4free-331826b003fae451c70e17807d1a105af1453413.zip |
Diffstat (limited to 'g4f/gui')
-rw-r--r-- | g4f/gui/client/html/index.html | 3 | ||||
-rw-r--r-- | g4f/gui/server/backend.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/g4f/gui/client/html/index.html b/g4f/gui/client/html/index.html index 175b7dc8..d91e9b77 100644 --- a/g4f/gui/client/html/index.html +++ b/g4f/gui/client/html/index.html @@ -114,7 +114,7 @@ <div class="box input-box"> <textarea id="message-input" placeholder="Ask a question" cols="30" rows="10" style="white-space: pre-wrap;resize: none;"></textarea> - <label for="image" title="Works only with Bing, Gemini and OpenaiChat"> + <label for="image" title="Works with Bing, Gemini, OpenaiChat and You"> <input type="file" id="image" name="image" accept="image/*" required/> <i class="fa-regular fa-image"></i> </label> @@ -161,6 +161,7 @@ <option value="Gemini">Gemini</option> <option value="Liaobots">Liaobots</option> <option value="Phind">Phind</option> + <option value="You">You</option> <option value="">----</option> </select> </div> diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index 14f6cece..6847be34 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -138,6 +138,7 @@ class Backend_Api: file = request.files['image'] if file.filename != '' and is_allowed_extension(file.filename): kwargs['image'] = to_image(file.stream, file.filename.endswith('.svg')) + kwargs['image_name'] = file.filename if "json" in request.form: json_data = json.loads(request.form['json']) else: |