fix gradio interface
Browse files
app.py
CHANGED
@@ -29,9 +29,9 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
29 |
return output_text
|
30 |
|
31 |
demo = gr.ChatInterface(
|
32 |
-
gr.Markdown(title),
|
33 |
# gr.markdown(description),
|
34 |
-
respond,
|
35 |
additional_inputs=[
|
36 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
37 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
|
|
29 |
return output_text
|
30 |
|
31 |
demo = gr.ChatInterface(
|
32 |
+
title=gr.Markdown(title),
|
33 |
# gr.markdown(description),
|
34 |
+
fn=respond,
|
35 |
additional_inputs=[
|
36 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
37 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|