ffreemt commited on
Commit
e7193a9
1 Parent(s): 8c65930
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -143,10 +143,8 @@ class GenerationConfig:
143
 
144
 
145
  def format_prompt(system_prompt: str, user_prompt: str):
146
- """Format prompt based on: https://huggingface.co/spaces/mosaicml/mpt-30b-chat/blob/main/app.py.
147
-
148
- May need to be modified for WizardCoder: TODO
149
- """
150
 
151
  system_prompt = f"<|im_start|>system\n{system_prompt}<|im_end|>\n"
152
  user_prompt = f"<|im_start|>user\n{user_prompt}<|im_end|>\n"
@@ -312,9 +310,9 @@ with gr.Blocks(
312
  etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
313
  examples = gr.Examples(
314
  examples=[
315
- ["js 判断一个数是不是质数"],
316
- ["js 实现python range(10)"],
317
- ["js 实现python [*(range(10)]"],
318
  ["Explain the plot of Cinderella in a sentence."],
319
  [
320
  "How long does it take to become proficient in French, and what are the best methods for retaining information?"
 
143
 
144
 
145
  def format_prompt(system_prompt: str, user_prompt: str):
146
+ """Format prompt based on: https://huggingface.co/spaces/mosaicml/mpt-30b-chat/blob/main/app.py."""
147
+ # May need to be modified for WizardCoder: TODO
 
 
148
 
149
  system_prompt = f"<|im_start|>system\n{system_prompt}<|im_end|>\n"
150
  user_prompt = f"<|im_start|>user\n{user_prompt}<|im_end|>\n"
 
310
  etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
311
  examples = gr.Examples(
312
  examples=[
313
+ ["判断一个数是不是质数的 javascript 码"],
314
+ ["实现python range(10)的 javascript 码"],
315
+ ["实现python [*(range(10)]的 javascript 码"],
316
  ["Explain the plot of Cinderella in a sentence."],
317
  [
318
  "How long does it take to become proficient in French, and what are the best methods for retaining information?"