Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -194,68 +194,68 @@ with gr.Blocks(css=CSS, theme="small_and_pretty") as demo:
|
|
194 |
gr.HTML(TITLE)
|
195 |
gr.HTML(EXPLANATION)
|
196 |
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
197 |
-
with gr.Tab("Chatbot"):
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
with gr.Tab("Vision"):
|
260 |
with gr.Row():
|
261 |
input_img = gr.Image(label="Input Picture")
|
|
|
194 |
gr.HTML(TITLE)
|
195 |
gr.HTML(EXPLANATION)
|
196 |
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
197 |
+
# with gr.Tab("Chatbot"):
|
198 |
+
# chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
199 |
+
# gr.ChatInterface(
|
200 |
+
# fn=stream_chat,
|
201 |
+
# chatbot=chatbot,
|
202 |
+
# fill_height=True,
|
203 |
+
# additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
204 |
+
# additional_inputs=[
|
205 |
+
# gr.Textbox(
|
206 |
+
# value="You are a helpful assistant",
|
207 |
+
# label="System Prompt",
|
208 |
+
# render=False,
|
209 |
+
# ),
|
210 |
+
# gr.Slider(
|
211 |
+
# minimum=0,
|
212 |
+
# maximum=1,
|
213 |
+
# step=0.1,
|
214 |
+
# value=0.8,
|
215 |
+
# label="Temperature",
|
216 |
+
# render=False,
|
217 |
+
# ),
|
218 |
+
# gr.Slider(
|
219 |
+
# minimum=128,
|
220 |
+
# maximum=8192,
|
221 |
+
# step=1,
|
222 |
+
# value=1024,
|
223 |
+
# label="Max new tokens",
|
224 |
+
# render=False,
|
225 |
+
# ),
|
226 |
+
# gr.Slider(
|
227 |
+
# minimum=0.0,
|
228 |
+
# maximum=1.0,
|
229 |
+
# step=0.1,
|
230 |
+
# value=1.0,
|
231 |
+
# label="top_p",
|
232 |
+
# render=False,
|
233 |
+
# ),
|
234 |
+
# gr.Slider(
|
235 |
+
# minimum=1,
|
236 |
+
# maximum=20,
|
237 |
+
# step=1,
|
238 |
+
# value=20,
|
239 |
+
# label="top_k",
|
240 |
+
# render=False,
|
241 |
+
# ),
|
242 |
+
# gr.Slider(
|
243 |
+
# minimum=0.0,
|
244 |
+
# maximum=2.0,
|
245 |
+
# step=0.1,
|
246 |
+
# value=1.2,
|
247 |
+
# label="Repetition penalty",
|
248 |
+
# render=False,
|
249 |
+
# ),
|
250 |
+
# ],
|
251 |
+
# examples=[
|
252 |
+
# ["How to make a self-driving car?"],
|
253 |
+
# ["Give me a creative idea to establish a startup"],
|
254 |
+
# ["How can I improve my programming skills?"],
|
255 |
+
# ["Show me a code snippet of a website's sticky header in CSS and JavaScript."],
|
256 |
+
# ],
|
257 |
+
# cache_examples=False,
|
258 |
+
# )
|
259 |
with gr.Tab("Vision"):
|
260 |
with gr.Row():
|
261 |
input_img = gr.Image(label="Input Picture")
|