Weyaxi commited on
Commit
ffc7873
1 Parent(s): d750300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,6 +16,9 @@ gguf_model_id = "bartowski/Einstein-v6.1-Llama3-8B-GGUF"
16
 
17
  download_gguf_model_dir = snapshot_download(repo_id=gguf_model_id, allow_patterns=["*Q6_K.gguf"], local_dir = "./models")
18
 
 
 
 
19
  css = """
20
  .message-row {
21
  justify-content: space-evenly !important;
@@ -151,7 +154,6 @@ demo = gr.ChatInterface(
151
  label="Repetition penalty",
152
  ),
153
 
154
- files = [f for f in os.listdir(download_gguf_model_dir) if os.path.isfile(os.path.join(download_gguf_model_dir, f))]
155
  gr.Dropdown(files, value=files[0], label="Model"),
156
  ],
157
  theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="blue", neutral_hue="gray",font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
 
16
 
17
  download_gguf_model_dir = snapshot_download(repo_id=gguf_model_id, allow_patterns=["*Q6_K.gguf"], local_dir = "./models")
18
 
19
+
20
+ files = [f for f in os.listdir(download_gguf_model_dir) if os.path.isfile(os.path.join(download_gguf_model_dir, f))]
21
+
22
  css = """
23
  .message-row {
24
  justify-content: space-evenly !important;
 
154
  label="Repetition penalty",
155
  ),
156
 
 
157
  gr.Dropdown(files, value=files[0], label="Model"),
158
  ],
159
  theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="blue", neutral_hue="gray",font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(