Bofandra commited on
Commit
f8b43ff
·
verified ·
1 Parent(s): 8643651

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
- from ctransformers import AutoModel
3
 
4
  # Load the GGUF model
5
  model_path = "microsoft/Phi-3-mini-4k-instruct-gguf"
6
- model = AutoModel.from_pretrained(model_path, model_type="phi")
7
 
8
  def generate_letter(date, time, purpose, place, sender, receiver):
9
  prompt = (f"Write a formal letter with the following details:\n"
 
1
  import gradio as gr
2
+ from ctransformers import AutoModelForCausalLm
3
 
4
  # Load the GGUF model
5
  model_path = "microsoft/Phi-3-mini-4k-instruct-gguf"
6
+ model = AutoModelForCausalLm.from_pretrained(model_path, model_type="phi")
7
 
8
  def generate_letter(date, time, purpose, place, sender, receiver):
9
  prompt = (f"Write a formal letter with the following details:\n"