chrisjcc commited on
Commit
6fa58eb
·
verified ·
1 Parent(s): 6b181a8

Changed from Named Entity Recognition (NER) to text-to-image

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
9
  hf_api_key = os.environ['HF_API_KEY']
10
 
11
  # Text-to-image endpoint
12
- get_completion = pipeline("ner", model="sd-legacy/stable-diffusion-v1-5")
13
 
14
 
15
  # A helper function to convert the PIL image to base64,
 
9
  hf_api_key = os.environ['HF_API_KEY']
10
 
11
  # Text-to-image endpoint
12
+ get_completion = pipeline("text-to-image", model="sd-legacy/stable-diffusion-v1-5")
13
 
14
 
15
  # A helper function to convert the PIL image to base64,