Spaces:
Runtime error
Runtime error
Modify Gradio UI
Browse files110 unmodified lines111112113114115116117118119120121122123124125126127128129130131132110 unmodified linesreturn f"Error fetching content: {str(e)}"with gr.Blocks() as demo:gr.Markdown("# ๐ค ARA: Auto README.md Agent ๐")repo_input = gr.Textbox(label="GitHub Repository URL",placeholder="Enter the GitHub repository URL (e.g. https://github.com/username/repo)")readme_output = gr.Textbox(label="Generated README.md")with gr.Row():with gr.Column():gr.Markdown("#### ๐ผ๏ธ Preview (Markdown Rendered)")readme_preview = gr.Markdown()with gr.Column():gr.Markdown("#### ๐ Markdown File (Copyable)")readme_markdown = gr.Textbox(lines=24, label="Markdown", interactive=True, show_copy_button=True)generate_btn = gr.Button("Generate README.md")# When generating, fill both preview and markdowndef dual_output(readme):return readme, readme110 unmodified lines111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143110 unmodified linesreturn f"Error fetching content: {str(e)}"with gr.Blocks() as demo:# ์ ๋ชฉ ๊ฐ์ด๋ฐ ์ ๋ ฌgr.HTML("<h1 style='text-align:center;'>๐ค ARA: Auto README.md Agent ๐</h1>")repo_input = gr.Textbox(label="GitHub Repository URL",placeholder="Enter the GitHub repository URL (e.g. https://github.com/username/repo)")with gr.Row():with gr.Column():gr.Markdown("#### ๐ผ๏ธ Preview (Markdown Rendered)")# ์ผ์ชฝ: ์์ ๊ฐ๋ฅํ ํ๋ฆฌ๋ทฐ ๋ฐ์คreadme_preview = gr.Textbox(lines=24,label="Preview (Markdown Rendered)",interactive=True)with gr.Column():gr.Markdown("#### ๐ Markdown File (Copyable)")# ์ค๋ฅธ์ชฝ: ์์ ๋ถ๊ฐ, ๋ณต์ฌ ๋ฒํผ ์๋ ๋ฐ์คreadme_markdown = gr.Textbox(lines=24,label="Markdown",interactive=False,show_copy_button=True)generate_btn = gr.Button("Generate README.md")# ๋ฒํผ ํด๋ฆญ ์ ๋ ๋ฐ์ค ๋ชจ๋ ์ฑ์def dual_output(readme):return readme, readme
app.py+16-5