DR-Rakshitha commited on
Commit
9a04a2b
·
1 Parent(s): fd23bfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,15 +1,8 @@
1
  import gradio as gr
2
- from transformers import AutoTokenizer, AutoModelForCausalLM
3
- import torch
4
  from gpt4all import GPT4All
5
- import os
6
 
7
  # Specify the local path to the downloaded model file
8
- model_path = "https://huggingface.co/spaces/DR-Rakshitha/wizardlm_api/blob/main/wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin"
9
-
10
- # Check if the model file exists locally
11
- if not os.path.exists(model_path):
12
- raise FileNotFoundError(f"Model file not found at {model_path}. Please download it manually.")
13
 
14
  # Initialize the GPT4All model
15
  model = GPT4All(model_path)
 
1
  import gradio as gr
 
 
2
  from gpt4all import GPT4All
 
3
 
4
  # Specify the local path to the downloaded model file
5
+ model_path = "wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin"
 
 
 
 
6
 
7
  # Initialize the GPT4All model
8
  model = GPT4All(model_path)