Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,15 @@ def extract_info(youtube_url):
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"오류 발생: {str(e)}"
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
if __name__ == "__main__":
|
| 41 |
demo.launch()
|
|
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"오류 발생: {str(e)}"
|
| 37 |
|
| 38 |
+
with gr.Blocks() as demo:
|
| 39 |
+
gr.Markdown("## YouTube 메타데이터 및 다운로드 링크 추출기")
|
| 40 |
+
gr.Markdown("주의: 이 도구를 사용하여 저작권이 있는 콘텐츠를 무단으로 다운로드하는 것은 불법입니다.")
|
| 41 |
+
|
| 42 |
+
youtube_url_input = gr.Textbox(label="YouTube URL 입력")
|
| 43 |
+
extract_button = gr.Button("정보 추출")
|
| 44 |
+
output = gr.Textbox(label="추출된 정보", lines=10)
|
| 45 |
+
|
| 46 |
+
extract_button.click(fn=extract_info, inputs=youtube_url_input, outputs=output)
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
| 49 |
demo.launch()
|