Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -112,11 +112,11 @@ with gr.Blocks() as demo:
|
|
112 |
def bot_fn(history: list):
|
113 |
prefix = history[-1]["content"]
|
114 |
history.append({"role": "assistant", "content": ""})
|
115 |
-
if prefix.startswith("pitch duration wait\n\n"):
|
116 |
-
|
117 |
-
else:
|
118 |
-
|
119 |
-
|
120 |
queue = Queue()
|
121 |
class MyStreamer:
|
122 |
def put(self, tokens):
|
|
|
112 |
def bot_fn(history: list):
|
113 |
prefix = history[-1]["content"]
|
114 |
history.append({"role": "assistant", "content": ""})
|
115 |
+
# if prefix.startswith("pitch duration wait\n\n"):
|
116 |
+
history[-1]["content"] += "Generating with the given prefix...\n"
|
117 |
+
# else:
|
118 |
+
# history[-1]["content"] += f"Generating from scratch with a default prefix of {default_prefix_len} notes...\n"
|
119 |
+
# prefix = default_prefix
|
120 |
queue = Queue()
|
121 |
class MyStreamer:
|
122 |
def put(self, tokens):
|