neuralleap commited on
Commit
f48e227
·
verified ·
1 Parent(s): e8ee37e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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", # use OpenAI-style message dicts
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
- retry_btn="Regenerate",
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
  )