Spaces:
Runtime error
Runtime error
vericudebuget
commited on
Commit
•
6be7d23
1
Parent(s):
42b0f58
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
|
|
27 |
|
28 |
# Get current time
|
29 |
now = datetime.datetime.now()
|
30 |
-
formatted_time = now.strftime("%H
|
31 |
-
system_prompt = f"System time
|
32 |
|
33 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
34 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
@@ -49,6 +49,7 @@ gr.ChatInterface(
|
|
49 |
fn=generate,
|
50 |
chatbot=gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
51 |
additional_inputs=additional_inputs,
|
|
|
52 |
submit_btn="➢",
|
53 |
retry_btn="Retry",
|
54 |
undo_btn="↩ Undo",
|
|
|
27 |
|
28 |
# Get current time
|
29 |
now = datetime.datetime.now()
|
30 |
+
formatted_time = now.strftime("%H:%M:%S, %B %d, %Y")
|
31 |
+
system_prompt = f"System time: {formatted_time}"
|
32 |
|
33 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
34 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
|
|
49 |
fn=generate,
|
50 |
chatbot=gr.Chatbot(show_label=True, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
51 |
additional_inputs=additional_inputs,
|
52 |
+
title="ConvoLite",
|
53 |
submit_btn="➢",
|
54 |
retry_btn="Retry",
|
55 |
undo_btn="↩ Undo",
|