Mathias Lux commited on
Commit
7b36e69
·
1 Parent(s): 79bb8b7

Added a title and a description

Browse files
Files changed (1) hide show
  1. app.py +24 -17
app.py CHANGED
@@ -62,23 +62,30 @@ def respond(
62
  yield response
63
 
64
 
65
- """
66
- For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
67
- """
68
- demo = gr.ChatInterface(
69
- respond,
70
- additional_inputs=[
71
- gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
72
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
73
- gr.Slider(
74
- minimum=0.1,
75
- maximum=1.0,
76
- value=0.95,
77
- step=0.05,
78
- label="Top-p (nucleus sampling)",
79
- ),
80
- ],
81
- )
 
 
 
 
 
 
 
82
 
83
 
84
  if __name__ == "__main__":
 
62
  yield response
63
 
64
 
65
+ with gr.Blocks(title="AI Biographical Interview Assistant") as demo:
66
+ gr.Markdown("# AI Biographical Interview Assistant")
67
+ gr.Markdown("""
68
+ Welcome to the AI Biographical Interview Assistant! This tool uses advanced AI to conduct
69
+ an in-depth interview about your life experiences. The AI interviewer uses the Socratic method
70
+ to ask thoughtful questions and gather information for creating a biographical article.
71
+
72
+ Simply start chatting below, and the AI will guide you through the interview process.
73
+ """)
74
+
75
+ chatbot = gr.ChatInterface(
76
+ respond,
77
+ additional_inputs=[
78
+ gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
79
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
80
+ gr.Slider(
81
+ minimum=0.1,
82
+ maximum=1.0,
83
+ value=0.95,
84
+ step=0.05,
85
+ label="Top-p (nucleus sampling)",
86
+ ),
87
+ ],
88
+ )
89
 
90
 
91
  if __name__ == "__main__":