Spaces:
Runtime error
Runtime error
Mathias Lux
commited on
Commit
·
7b36e69
1
Parent(s):
79bb8b7
Added a title and a description
Browse files
app.py
CHANGED
@@ -62,23 +62,30 @@ def respond(
|
|
62 |
yield response
|
63 |
|
64 |
|
65 |
-
""
|
66 |
-
|
67 |
-
"""
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
label="
|
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__":
|