EnlistedGhost commited on
Commit
bb98536
·
verified ·
1 Parent(s): 9aecb72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -231,27 +231,32 @@ An advanced GGUF editor, reading GGUF files directly from Hugging Face repositor
231
 
232
  <details>
233
  <summary>Running the editor locally</summary>
 
234
 
235
  * Clone the space
236
  ```bash
237
- git clone https://huggingface.co/spaces/CISCai/gguf-editor
238
- cd gguf-editor
239
  ```
240
- * Create a virtual environment
241
  ```bash
242
- python3 -m venv .venv
 
 
 
 
243
  ```
244
  * Install dependencies
245
  ```
246
- .venv/bin/pip install -r requirements.txt
247
  ```
248
  * Gradio requires a HF_TOKEN for the LoginButton/OAuth, so log in to Hugging Face
249
  ```
250
- .venv/bin/huggingface-cli login
251
  ```
252
  * Start the server
253
  ```
254
- .venv/bin/python app.py
255
  ```
256
  * Browse to http://localhost:7860
257
 
@@ -263,7 +268,7 @@ An advanced GGUF editor, reading GGUF files directly from Hugging Face repositor
263
  * Set up the application locally (see above)
264
  * Start the server with additional parameter
265
  ```
266
- .venv/bin/python app.py "path/to/gguf/folder"
267
  ```
268
  * Browse to http://localhost:7860
269
 
@@ -1084,7 +1089,7 @@ Any framework based on `llama-cpp-python` will let you select which chat templat
1084
  ),
1085
  meta_string: gr.Textbox(
1086
  value = val if typ == GGUFValueType.STRING else '',
1087
- info = "Use [Chat Template Editor](https://huggingface.co/spaces/CISCai/chat-template-editor) to edit/test the template, then paste the result here (press Enter to update value)" if do_chat_template else example_defaults[example_string]["info"],
1088
  visible = True if typ == GGUFValueType.STRING else False,
1089
  ),
1090
  meta_array: gr.Textbox(
 
231
 
232
  <details>
233
  <summary>Running the editor locally</summary>
234
+ *(OpenSUSE Linux - Need instructions for Windows or Mac? Sorry...)*
235
 
236
  * Clone the space
237
  ```bash
238
+ git clone https://huggingface.co/spaces/EnlistedGhost/gguf-editor ~/.github-repo/GGUF-Editor
239
+ cd ~/.github-repo/GGUF-Editor
240
  ```
241
+ * Create a Python-3.11 virtual environment (OpenSUSE Linux)
242
  ```bash
243
+ python3.11 -m venv ~/.github-repo/GGUF-Editor/.env
244
+ ```
245
+ * Initialize Python-3.11 virtual environment (OpenSUSE Linux)
246
+ ```
247
+ source ~/.github-repo/GGUF-Editor/.env/bin/activate
248
  ```
249
  * Install dependencies
250
  ```
251
+ pip3 install -r ~/.github-repo/GGUF-Editor/requirements.txt
252
  ```
253
  * Gradio requires a HF_TOKEN for the LoginButton/OAuth, so log in to Hugging Face
254
  ```
255
+ hf login
256
  ```
257
  * Start the server
258
  ```
259
+ python3 app.py
260
  ```
261
  * Browse to http://localhost:7860
262
 
 
268
  * Set up the application locally (see above)
269
  * Start the server with additional parameter
270
  ```
271
+ python3 app.py "path/to/gguf/folder"
272
  ```
273
  * Browse to http://localhost:7860
274
 
 
1089
  ),
1090
  meta_string: gr.Textbox(
1091
  value = val if typ == GGUFValueType.STRING else '',
1092
+ info = "Use [Chat Template Editor](https://huggingface.co/spaces/EnlistedGhost/chat-template-editor) to edit/test the template, then paste the result here (press Enter to update value)" if do_chat_template else example_defaults[example_string]["info"],
1093
  visible = True if typ == GGUFValueType.STRING else False,
1094
  ),
1095
  meta_array: gr.Textbox(