Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,14 +76,6 @@ with gr.Blocks(css=css) as demo:
|
|
76 |
submit_btn = gr.Button(value="Submit")
|
77 |
output = gr.Text(label="Caption")
|
78 |
|
79 |
-
gr.Examples(
|
80 |
-
[["image1.jpg"], ["image2.jpg"], ["image3.png"], ["image4.jpg"], ["image5.jpg"], ["image6.PNG"]],
|
81 |
-
inputs=[input_img],
|
82 |
-
outputs=[output],
|
83 |
-
fn=create_captions_rich_sync,
|
84 |
-
label='Try captioning on examples'
|
85 |
-
)
|
86 |
-
|
87 |
submit_btn.click(create_captions_rich_sync, [input_img], [output])
|
88 |
|
89 |
# Gradio 서버를 비동기적으로 실행
|
@@ -142,6 +134,3 @@ async def download_image(url):
|
|
142 |
if __name__ == "__main__":
|
143 |
discord_client = MyClient(intents=intents)
|
144 |
discord_client.run(os.getenv('DISCORD_TOKEN'))
|
145 |
-
|
146 |
-
discord_client = MyClient(intents=intents)
|
147 |
-
discord_client.run(os.getenv('DISCORD_TOKEN'))
|
|
|
76 |
submit_btn = gr.Button(value="Submit")
|
77 |
output = gr.Text(label="Caption")
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
submit_btn.click(create_captions_rich_sync, [input_img], [output])
|
80 |
|
81 |
# Gradio 서버를 비동기적으로 실행
|
|
|
134 |
if __name__ == "__main__":
|
135 |
discord_client = MyClient(intents=intents)
|
136 |
discord_client.run(os.getenv('DISCORD_TOKEN'))
|
|
|
|
|
|