Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,12 +4,12 @@ import random
|
|
| 4 |
import sys
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
def process(
|
| 8 |
filename = str(random.randint(111111111, 999999999)) + ".png"
|
| 9 |
|
| 10 |
file_path = os.path.join(os.path.dirname(__file__), filename)
|
| 11 |
|
| 12 |
-
response = requests.get("https://image.pollinations.ai/prompt/" +
|
| 13 |
|
| 14 |
if response.status_code == 200:
|
| 15 |
|
|
|
|
| 4 |
import sys
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
def process(Prompt):
|
| 8 |
filename = str(random.randint(111111111, 999999999)) + ".png"
|
| 9 |
|
| 10 |
file_path = os.path.join(os.path.dirname(__file__), filename)
|
| 11 |
|
| 12 |
+
response = requests.get("https://image.pollinations.ai/prompt/" + Prompt + ('.' * random.randint(0, 100)))
|
| 13 |
|
| 14 |
if response.status_code == 200:
|
| 15 |
|