Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,11 @@ def generate(
|
|
| 48 |
|
| 49 |
|
| 50 |
additional_inputs = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
gr.Slider(
|
| 52 |
label="Temperature",
|
| 53 |
value=0.9,
|
|
@@ -86,18 +91,8 @@ additional_inputs = [
|
|
| 86 |
),
|
| 87 |
]
|
| 88 |
|
| 89 |
-
initial_prompt = "Hello John! Welcome to our simulation interview for the Solution Architect position. I understand you may have some initial thoughts or questions about the job requirements. Feel free to share those with me."
|
| 90 |
-
|
| 91 |
gr.ChatInterface(
|
| 92 |
generate,
|
| 93 |
-
inputs=[gr.Textbox(label="Initial Prompt", type="text", default=initial_prompt)],
|
| 94 |
-
outputs=gr.Chatbot(
|
| 95 |
-
show_label=False,
|
| 96 |
-
show_share_button=False,
|
| 97 |
-
show_copy_button=True,
|
| 98 |
-
likeable=True,
|
| 99 |
-
layout="panel",
|
| 100 |
-
),
|
| 101 |
additional_inputs=additional_inputs,
|
| 102 |
title="Mistral 7B",
|
| 103 |
).launch(show_api=False)
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
additional_inputs = [
|
| 51 |
+
gr.Textbox(
|
| 52 |
+
label="Initial Prompt",
|
| 53 |
+
type="text",
|
| 54 |
+
default="Hello John! Welcome to our simulation interview for the Solution Architect position. I understand you may have some initial thoughts or questions about the job requirements. Feel free to share those with me.",
|
| 55 |
+
),
|
| 56 |
gr.Slider(
|
| 57 |
label="Temperature",
|
| 58 |
value=0.9,
|
|
|
|
| 91 |
),
|
| 92 |
]
|
| 93 |
|
|
|
|
|
|
|
| 94 |
gr.ChatInterface(
|
| 95 |
generate,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
additional_inputs=additional_inputs,
|
| 97 |
title="Mistral 7B",
|
| 98 |
).launch(show_api=False)
|