Tomtom84 commited on
Commit
66ad395
·
2 Parent(s): ce3e956 f4a47ee

Merge branch 'main' of https://huggingface.co/spaces/Tomtom84/dev-mode-python

Browse files
Files changed (2) hide show
  1. app.py +5 -2
  2. requirements.txt +2 -0
app.py CHANGED
@@ -6,8 +6,11 @@ import io
6
  interface = outetts.Interface(
7
  config=outetts.ModelConfig.auto_config(
8
  model=outetts.Models.VERSION_1_0_SIZE_1B,
9
- backend=outetts.Backend.LLAMACPP,
10
- quantization=outetts.LlamaCppQuantization.FP16
 
 
 
11
  )
12
  )
13
 
 
6
  interface = outetts.Interface(
7
  config=outetts.ModelConfig.auto_config(
8
  model=outetts.Models.VERSION_1_0_SIZE_1B,
9
+ # For llama.cpp backend
10
+ #backend=outetts.Backend.LLAMACPP,
11
+ #quantization=outetts.LlamaCppQuantization.FP16
12
+ # For transformers backend
13
+ backend=outetts.Backend.HF,
14
  )
15
  )
16
 
requirements.txt CHANGED
@@ -2,3 +2,5 @@ uvicorn[standard]==0.30.1
2
  fastapi==0.111.0
3
  outetts>=0.4
4
  transformers==4.48.3
 
 
 
2
  fastapi==0.111.0
3
  outetts>=0.4
4
  transformers==4.48.3
5
+ websockets==15.0.1
6
+