winglian commited on
Commit
aac688d
1 Parent(s): a375959

undo last commit and pass app in readme

Browse files
Files changed (3) hide show
  1. README.md +3 -4
  2. app.py +2 -2
  3. app_hf_ui_demo.py +1 -1
README.md CHANGED
@@ -1,13 +1,12 @@
1
  ---
2
- title: Llama Adapter
3
- emoji: 💩
4
  colorFrom: red
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.24.1
8
- app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Llama Adapter UI Demo
3
+ emoji: 🦙
4
  colorFrom: red
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.24.1
8
+ app_file: app_hf_ui_demo.py
9
  pinned: false
10
  license: mit
11
  ---
12
 
 
app.py CHANGED
@@ -11,8 +11,8 @@ from llama_lora.utils.data import init_data_dir
11
 
12
  def main(
13
  load_8bit: bool = False,
14
- base_model: str = "decapoda-research/llama-7b-hf",
15
- data_dir: str = "./datasets",
16
  # Allows to listen on all interfaces by providing '0.0.0.0'.
17
  server_name: str = "127.0.0.1",
18
  share: bool = False,
 
11
 
12
  def main(
13
  load_8bit: bool = False,
14
+ base_model: str = "",
15
+ data_dir: str = "",
16
  # Allows to listen on all interfaces by providing '0.0.0.0'.
17
  server_name: str = "127.0.0.1",
18
  share: bool = False,
app_hf_ui_demo.py CHANGED
@@ -10,7 +10,7 @@ from llama_lora.utils.data import init_data_dir
10
 
11
 
12
  def main():
13
- data_dir = os.path.abspath("./data")
14
  Global.default_base_model_name = "decapoda-research/llama-7b-hf"
15
  Global.data_dir = data_dir
16
  Global.load_8bit = False
 
10
 
11
 
12
  def main():
13
+ data_dir = os.path.abspath("./datasets")
14
  Global.default_base_model_name = "decapoda-research/llama-7b-hf"
15
  Global.data_dir = data_dir
16
  Global.load_8bit = False