SpiketheCowboy commited on
Commit
b6c667f
1 Parent(s): 0a8f6e9

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +1 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def respond(
83
  **kwargs,
84
  ):
85
  # prompt wrapper, only single-turn is allowed for now
86
- prompt = f"### Human:\n{message}\n\n### Assistant:\n"
87
  inputs = tokenizer(
88
  prompt,
89
  return_tensors="pt",
@@ -129,7 +129,7 @@ g = gr.Interface(
129
  )
130
  ],
131
  title="ExpertLLaMA",
132
- description="ExpertLLaMA is a open-source chatbot trained on expert instructed data produce with GPT-3.5, see our [project repo](https://github.com/OFA-Sys/ExpertLLaMA) for details.",
133
  )
134
  g.queue(concurrency_count=1)
135
  g.launch()
 
83
  **kwargs,
84
  ):
85
  # prompt wrapper, only single-turn is allowed for now
86
+ prompt = f"### Human:\n{instruction}\n\n### Assistant:\n"
87
  inputs = tokenizer(
88
  prompt,
89
  return_tensors="pt",
 
129
  )
130
  ],
131
  title="ExpertLLaMA",
132
+ description="ExpertLLaMA is an open-source chatbot trained on expert-like data produced with GPT-3.5, see our [project repo](https://github.com/OFA-Sys/ExpertLLaMA) for details.",
133
  )
134
  g.queue(concurrency_count=1)
135
  g.launch()
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  torch
2
  transformers
3
  SentencePiece
4
- accelerate
5
- tqdm
 
1
  torch
2
  transformers
3
  SentencePiece
4
+ accelerate