Spaces:
Sleeping
Sleeping
Update server
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ def edit(image, source_prompt, target_prompt, config, progress=gr.Progress(track
|
|
37 |
raise ValueError("Need to upload an image and enter init and edit prompts")
|
38 |
|
39 |
image_bytes = get_bytes(image)
|
40 |
-
os.environ['SERVER'] = "0.0.0.0:50052"
|
41 |
with grpc.insecure_channel(os.environ['SERVER']) as channel:
|
42 |
stub = GuideAndRescaleServiceStub(channel)
|
43 |
|
|
|
37 |
raise ValueError("Need to upload an image and enter init and edit prompts")
|
38 |
|
39 |
image_bytes = get_bytes(image)
|
|
|
40 |
with grpc.insecure_channel(os.environ['SERVER']) as channel:
|
41 |
stub = GuideAndRescaleServiceStub(channel)
|
42 |
|