skkk commited on
Commit
6be6b29
1 Parent(s): e43f7ba

Remove some url

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -40,7 +40,6 @@ html_content = """
40
  <div style="text-align: center;">
41
  <h1>Rodin Gen-1</h1>
42
  <div style="display: flex; justify-content: space-around;">
43
- <p><strong>Paper:</strong> <a href="https://sites.google.com/view/clay-3dlm" target="_blank"> https://sites.google.com/view/clay-3dlm</a></p>
44
  <p><strong>Rodin Gen-1:</strong> <a href="https://hyperhuman.top/rodin" target="_blank">https://hyperhuman.top/rodin</a></p>
45
  <p><strong>Github:</strong> <a href="https://github.com/CLAY-3D/OpenCLAY" target="_blank">https://github.com/CLAY-3D/OpenCLAY</a></p>
46
  </div>
@@ -58,11 +57,6 @@ def do_nothing(text):
58
 
59
  def handle_selection(selection):
60
  return "Rodin Gen-1(0525)"
61
- # if selection in ["OpenClay(600M)", "OpenClay(200M)"]:
62
- # # 返回一个 HTML 字符串,用于在新窗口中打开指定的 URL
63
- # return f"<script>window.open('https://github.com/CLAY-3D/OpenCLAY', '_blank');</script>"
64
- # else:
65
- # return "You selected Rodin Gen-1(0525)."
66
 
67
  def hint_in_prompt(hint, prompt):
68
  return re.search(fr"{hint[:-1]}", prompt) is not None
@@ -116,14 +110,7 @@ with gr.Blocks() as demo:
116
  with gr.Column():
117
  block_image = gr.Image(height=256, image_mode="RGB", sources="upload", elem_classes="elem_imageupload", type="filepath")
118
  block_model_card = gr.Dropdown(choices=options, label="Model Card", value="Rodin Gen-1(0525)", interactive=True)
119
- # block_image_scale = gr.Slider(minimum=0, maximum=1, value=1, label="scale", interactive=True)
120
- # block_model_card = gr.Radio(
121
- # choices=["Rodin Gen-1(0525)", "OpenClay(600M)", "OpenClay(200M)"],
122
- # label="Model Selection",
123
- # value="Rodin Gen-1(0525)" # 默认选中第一个选项
124
- # )
125
  with gr.Group():
126
- # with gr.Row(equal_height=True):
127
  block_prompt = gr.Textbox(
128
  value="",
129
  placeholder="Auto generated description of 3d geometry",
@@ -154,7 +141,6 @@ with gr.Blocks() as demo:
154
  cacha_empty = gr.Text(visible=False)
155
  cache_task_uuid = gr.Text(value="", visible=False)
156
 
157
- # button_generate.click(fn=return_render, inputs=[block_image], outputs=[raw_image, fake3d])
158
  block_image.upload(
159
  fn=do_nothing,
160
  js=change_button_name,
 
40
  <div style="text-align: center;">
41
  <h1>Rodin Gen-1</h1>
42
  <div style="display: flex; justify-content: space-around;">
 
43
  <p><strong>Rodin Gen-1:</strong> <a href="https://hyperhuman.top/rodin" target="_blank">https://hyperhuman.top/rodin</a></p>
44
  <p><strong>Github:</strong> <a href="https://github.com/CLAY-3D/OpenCLAY" target="_blank">https://github.com/CLAY-3D/OpenCLAY</a></p>
45
  </div>
 
57
 
58
  def handle_selection(selection):
59
  return "Rodin Gen-1(0525)"
 
 
 
 
 
60
 
61
  def hint_in_prompt(hint, prompt):
62
  return re.search(fr"{hint[:-1]}", prompt) is not None
 
110
  with gr.Column():
111
  block_image = gr.Image(height=256, image_mode="RGB", sources="upload", elem_classes="elem_imageupload", type="filepath")
112
  block_model_card = gr.Dropdown(choices=options, label="Model Card", value="Rodin Gen-1(0525)", interactive=True)
 
 
 
 
 
 
113
  with gr.Group():
 
114
  block_prompt = gr.Textbox(
115
  value="",
116
  placeholder="Auto generated description of 3d geometry",
 
141
  cacha_empty = gr.Text(visible=False)
142
  cache_task_uuid = gr.Text(value="", visible=False)
143
 
 
144
  block_image.upload(
145
  fn=do_nothing,
146
  js=change_button_name,