Spaces:
Running
Running
seawolf2357
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,13 @@ def respond(message, history, max_tokens=512, temperature=0.7, top_p=0.95):
|
|
31 |
print(f"Failed to decode JSON: {e}")
|
32 |
yield "An error occurred while processing your request."
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
fn=respond,
|
36 |
additional_inputs=[
|
37 |
gr.Slider(minimum=1, maximum=2048, value=512, label="Max Tokens"),
|
|
|
31 |
print(f"Failed to decode JSON: {e}")
|
32 |
yield "An error occurred while processing your request."
|
33 |
|
34 |
+
css = """
|
35 |
+
footer {
|
36 |
+
visibility: hidden;
|
37 |
+
}
|
38 |
+
"""
|
39 |
+
|
40 |
+
demo = gr.ChatInterface(css=css,
|
41 |
fn=respond,
|
42 |
additional_inputs=[
|
43 |
gr.Slider(minimum=1, maximum=2048, value=512, label="Max Tokens"),
|