dx2102 commited on
Commit
61ade90
·
verified ·
1 Parent(s): 219120c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- 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):
 
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):