nomanabdullah2025 commited on
Commit
ce612e9
·
verified ·
1 Parent(s): a790408

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -34,12 +34,10 @@ from gradio_app.gradio_3dgen import create_ui as create_3d_ui
34
  from gradio_app.all_models import model_zoo
35
 
36
  # ===============================
37
- # Text-to-IMAGE 관련 API 함수 정의
38
- # ===============================
39
  def text_to_image(height, width, steps, scales, prompt, seed):
40
- """
41
- 주어진 파라미터를 이용해 외부 API의 /process_and_save_image 엔드포인트를 호출하여 이미지를 생성한다.
42
- """
43
  from gradio_client import Client
44
  client = Client(os.getenv("CLIENT_API")) # 기본값 설정
45
  result = client.predict(
@@ -57,17 +55,15 @@ def text_to_image(height, width, steps, scales, prompt, seed):
57
  return result
58
 
59
  def update_random_seed():
60
- """
61
- 외부 API의 /update_random_seed 엔드포인트를 호출하여 새로운 랜덤 시드 값을 가져온다.
62
- """
63
  from gradio_client import Client
64
  client = Client(os.getenv("CLIENT_API")) # 기본값 설정
65
  return client.predict(api_name="/update_random_seed")
66
 
67
 
68
- _TITLE = '''✨ 3D LLAMA Studio'''
69
  _DESCRIPTION = '''
70
- ### Welcome to 3D Llama Studio - Your Advanced 3D Generation Platform
71
 
72
  This platform offers two powerful features:
73
  1. **Text/Image to 3D**: Generate detailed 3D models from text descriptions or reference images
 
34
  from gradio_app.all_models import model_zoo
35
 
36
  # ===============================
37
+ # Text-to-IMAGE
38
+
39
  def text_to_image(height, width, steps, scales, prompt, seed):
40
+
 
 
41
  from gradio_client import Client
42
  client = Client(os.getenv("CLIENT_API")) # 기본값 설정
43
  result = client.predict(
 
55
  return result
56
 
57
  def update_random_seed():
58
+
 
 
59
  from gradio_client import Client
60
  client = Client(os.getenv("CLIENT_API")) # 기본값 설정
61
  return client.predict(api_name="/update_random_seed")
62
 
63
 
64
+ _TITLE = '''Dim.AI'''
65
  _DESCRIPTION = '''
66
+ ### Welcome to Dim AI Studio - Your Advanced 3D Generation Platform
67
 
68
  This platform offers two powerful features:
69
  1. **Text/Image to 3D**: Generate detailed 3D models from text descriptions or reference images