Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【PaddlePaddle Hackathon 5th】No.81 Add Text2Image & Autolabel Gradio #189

Merged
merged 8 commits into from
Oct 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update applications/gradio_text2image.py
  • Loading branch information
Liyulingyue authored Oct 20, 2023
commit 91c1edfc338032ec41b39424419ad9e9d7912df3
7 changes: 0 additions & 7 deletions applications/gradio_text2image.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ def tge_fun(image, prompt_pos, prompt_neg):
image = app(prompt=prompt_pos,negative_prompt=prompt_neg,image=image)['result']
return image

# dual_text_and_image_guided_generation
def dge_fun(image, prompt):
image = Image.fromarray(image.astype('uint8')).convert('RGB')
app = Appflow(app='dual_text_and_image_guided_generation',models=['shi-labs/versatile-diffusion'])
image = app(prompt=prompt,image=image)['result']
return image

# video_generation
def vge_fun(prompt):
app = Appflow(app='text_to_video_generation',models=['damo-vilab/text-to-video-ms-1.7b'])
Expand Down