Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,16 +63,13 @@ with gr.Blocks(title="OpenAI x Gradio Chat") as demo:
|
|
63 |
|
64 |
chat = gr.ChatInterface(
|
65 |
fn=chat_fn,
|
66 |
-
type="messages",
|
67 |
additional_inputs=[system_prompt, temperature, model_name],
|
68 |
textbox=gr.Textbox(placeholder="Ask me anything…"),
|
69 |
examples=["Explain transformers in one paragraph", "Write a dad joke about databases"],
|
70 |
cache_examples=False,
|
71 |
theme="soft",
|
72 |
-
|
73 |
-
undo_btn="Remove last",
|
74 |
-
clear_btn="Clear",
|
75 |
-
save_history=True, # saves chat logs (CSV) in Space filesystem
|
76 |
flagging_mode="manual",
|
77 |
flagging_options=["👍 Useful", "👎 Not good", "⚠ Inaccurate"],
|
78 |
)
|
|
|
63 |
|
64 |
chat = gr.ChatInterface(
|
65 |
fn=chat_fn,
|
66 |
+
type="messages",
|
67 |
additional_inputs=[system_prompt, temperature, model_name],
|
68 |
textbox=gr.Textbox(placeholder="Ask me anything…"),
|
69 |
examples=["Explain transformers in one paragraph", "Write a dad joke about databases"],
|
70 |
cache_examples=False,
|
71 |
theme="soft",
|
72 |
+
save_history=True,
|
|
|
|
|
|
|
73 |
flagging_mode="manual",
|
74 |
flagging_options=["👍 Useful", "👎 Not good", "⚠ Inaccurate"],
|
75 |
)
|