Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
@@ -35,11 +35,10 @@ def respond(
|
|
35 |
yield generated
|
36 |
|
37 |
demo = gr.ChatInterface(
|
38 |
-
respond,
|
|
|
39 |
title="DeepCoder with Suger",
|
40 |
description="Upload any text or pdf files and ask questions about them!",
|
41 |
-
textbox=gr.MultimodalTextbox(file_types=[".pdf", ".txt"]),
|
42 |
-
multimodal=True,
|
43 |
additional_inputs=[
|
44 |
gr.Textbox(value="You are a helpful coding assistant.", label="System message"),
|
45 |
gr.Slider(1, 2048, value=512, step=1, label="Max new tokens"),
|
|
|
35 |
yield generated
|
36 |
|
37 |
demo = gr.ChatInterface(
|
38 |
+
fn=respond,
|
39 |
+
type="messages",
|
40 |
title="DeepCoder with Suger",
|
41 |
description="Upload any text or pdf files and ask questions about them!",
|
|
|
|
|
42 |
additional_inputs=[
|
43 |
gr.Textbox(value="You are a helpful coding assistant.", label="System message"),
|
44 |
gr.Slider(1, 2048, value=512, step=1, label="Max new tokens"),
|