Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,10 +65,6 @@ def generate_map(image, prompt, steps, seed):
|
|
| 65 |
|
| 66 |
@app.route('/predict', methods=['POST'])
|
| 67 |
def predict():
|
| 68 |
-
global client
|
| 69 |
-
if not client:
|
| 70 |
-
client = Client(base_gradio_url)
|
| 71 |
-
|
| 72 |
data = request.get_json()
|
| 73 |
|
| 74 |
base64Image = data['data'][0]
|
|
|
|
| 65 |
|
| 66 |
@app.route('/predict', methods=['POST'])
|
| 67 |
def predict():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
data = request.get_json()
|
| 69 |
|
| 70 |
base64Image = data['data'][0]
|