Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -316,10 +316,10 @@ client = Client("vibs08/flash-sd3-new", hf_token=os.getenv("token"))
|
|
316 |
# URL for processing image via FastAPI
|
317 |
url = 'https://vibs08-image-3d-fastapi.hf.space/process_image/'
|
318 |
|
319 |
-
def text2img(
|
320 |
# Use the Gradio client to generate an image from text
|
321 |
result = client.predict(
|
322 |
-
|
323 |
seed=0,
|
324 |
randomize_seed=False,
|
325 |
guidance_scale=1,
|
@@ -331,8 +331,8 @@ def text2img(prompt):
|
|
331 |
# Assuming result is a file path or image data
|
332 |
return result
|
333 |
|
334 |
-
def three_d(
|
335 |
-
file_path = text2img(
|
336 |
|
337 |
payload = {
|
338 |
'seed': seed,
|
|
|
316 |
# URL for processing image via FastAPI
|
317 |
url = 'https://vibs08-image-3d-fastapi.hf.space/process_image/'
|
318 |
|
319 |
+
def text2img(promptt):
|
320 |
# Use the Gradio client to generate an image from text
|
321 |
result = client.predict(
|
322 |
+
prompt=promptt, # Adjust the argument name based on the actual method signature
|
323 |
seed=0,
|
324 |
randomize_seed=False,
|
325 |
guidance_scale=1,
|
|
|
331 |
# Assuming result is a file path or image data
|
332 |
return result
|
333 |
|
334 |
+
def three_d(promptt, seed, fr, mc, auth, text=None):
|
335 |
+
file_path = text2img(promptt) # Get the file path of the generated image
|
336 |
|
337 |
payload = {
|
338 |
'seed': seed,
|