Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ Remember to maintain a natural and polite conversational tone throughout the int
|
|
| 33 |
def format_prompt(message, history):
|
| 34 |
# Start with the initial prompt for the first interaction
|
| 35 |
if not history:
|
| 36 |
-
return
|
| 37 |
|
| 38 |
prompt = "<s>"
|
| 39 |
for user_prompt, bot_response in history:
|
|
@@ -116,7 +116,7 @@ additional_inputs = [
|
|
| 116 |
|
| 117 |
gr.ChatInterface(
|
| 118 |
fn=generate,
|
| 119 |
-
inputs=[gr.Textbox(label="Interviewer", type="text"
|
| 120 |
outputs=gr.Chatbot(
|
| 121 |
show_label=False,
|
| 122 |
show_share_button=False,
|
|
|
|
| 33 |
def format_prompt(message, history):
|
| 34 |
# Start with the initial prompt for the first interaction
|
| 35 |
if not history:
|
| 36 |
+
return initial_prompt
|
| 37 |
|
| 38 |
prompt = "<s>"
|
| 39 |
for user_prompt, bot_response in history:
|
|
|
|
| 116 |
|
| 117 |
gr.ChatInterface(
|
| 118 |
fn=generate,
|
| 119 |
+
inputs=[gr.Textbox(label="Interviewer", type="text")],
|
| 120 |
outputs=gr.Chatbot(
|
| 121 |
show_label=False,
|
| 122 |
show_share_button=False,
|