Spaces:
Runtime error
Runtime error
Commit
·
b78c4fb
1
Parent(s):
897715d
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def format_prompt(message, history):
|
|
15 |
def generate(prompt,history)
|
16 |
seed = random.randint(1,9999999999999)
|
17 |
|
18 |
-
system_prompt =
|
19 |
generate_kwargs = dict(
|
20 |
temperature=0.9,
|
21 |
max_new_tokens=1024,
|
@@ -32,4 +32,11 @@ def generate(prompt,history)
|
|
32 |
for response in stream:
|
33 |
output += response.token.text
|
34 |
yield output
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
def generate(prompt,history)
|
16 |
seed = random.randint(1,9999999999999)
|
17 |
|
18 |
+
system_prompt = prompts.SONG_WRITER
|
19 |
generate_kwargs = dict(
|
20 |
temperature=0.9,
|
21 |
max_new_tokens=1024,
|
|
|
32 |
for response in stream:
|
33 |
output += response.token.text
|
34 |
yield output
|
35 |
+
|
36 |
+
|
37 |
+
gr.ChatInterface(
|
38 |
+
fn=generate,
|
39 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
40 |
+
title="Song Writer",
|
41 |
+
concurrency_limit=20,
|
42 |
+
).launch(show_api=False)
|