apapiu commited on
Commit
28a9b53
1 Parent(s): da56136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -4,14 +4,12 @@ from PIL import Image
4
  from io import BytesIO
5
  import os
6
 
7
- token = os.environ['AUTH_TOKEN']
8
- runpod_id = os.environ['RUNPOD_ID']
9
 
10
- url = 'https://{runpod_id}-8000.proxy.runpod.net/generate-image/'
11
 
12
- def generate_image_from_text(prompt, class_guidance, token):
13
  headers = {
14
- 'Authorization': f'Bearer {token}'
15
  }
16
 
17
  data = {
 
4
  from io import BytesIO
5
  import os
6
 
 
 
7
 
8
+ url = 'https://{os.environ['RUNPOD_ID']}-8000.proxy.runpod.net/generate-image/'
9
 
10
+ def generate_image_from_text(prompt, class_guidance):
11
  headers = {
12
+ 'Authorization': f'Bearer {os.environ['AUTH_TOKEN']}'
13
  }
14
 
15
  data = {