返回提交历史
Modified
g4f/gui/client/html/index.html
+2
-1
Modified
g4f/gui/server/backend.py
+1
-0
XFEstudio/gpt4free
Add upload image in You provider
331826b0
代码差异
2 个文件
+3
-1
@@ -114,7 +114,7 @@
114
114
<div class="box input-box">
115
115
<textarea id="message-input" placeholder="Ask a question" cols="30" rows="10"
116
116
style="white-space: pre-wrap;resize: none;"></textarea>
117
<label for="image" title="Works only with Bing, Gemini and OpenaiChat">
117
<label for="image" title="Works with Bing, Gemini, OpenaiChat and You">
118
118
<input type="file" id="image" name="image" accept="image/*" required/>
119
119
<i class="fa-regular fa-image"></i>
120
120
</label>
@@ -161,6 +161,7 @@
161
161
<option value="Gemini">Gemini</option>
162
162
<option value="Liaobots">Liaobots</option>
163
163
<option value="Phind">Phind</option>
164
<option value="You">You</option>
164
165
<option value="">----</option>
165
166
</select>
166
167
</div>
@@ -138,6 +138,7 @@ class Backend_Api:
138
138
file = request.files['image']
139
139
if file.filename != '' and is_allowed_extension(file.filename):
140
140
kwargs['image'] = to_image(file.stream, file.filename.endswith('.svg'))
141
kwargs['image_name'] = file.filename
141
142
if "json" in request.form:
142
143
json_data = json.loads(request.form['json'])
143
144
else: