Spaces:
Sleeping
Sleeping
Neodpy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
from docs import generate_docs
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
|
6 |
# Define the Gradio Blocks interface.
|
7 |
with gr.Blocks(theme=gr.themes.Origin(primary_hue="red", secondary_hue="pink"), title="GitHub Repo Documentation Generator") as demo:
|
8 |
-
gr.
|
|
|
|
|
|
|
9 |
gr.Markdown(
|
10 |
"Enter a GitHub repository URL or ID (in the format `user/repo`) below. "
|
11 |
"This tool fetches repository details and uses the Groq API to generate documentation."
|
@@ -13,7 +16,6 @@ with gr.Blocks(theme=gr.themes.Origin(primary_hue="red", secondary_hue="pink"),
|
|
13 |
with gr.Row():
|
14 |
repo_id_input = gr.Textbox(
|
15 |
label="GitHub Repository URL or ID",
|
16 |
-
placeholder="https://github.com/octocat/Hello-World or octocat/Hello-World",
|
17 |
)
|
18 |
generate_button = gr.Button("Generate Documentation")
|
19 |
|
|
|
1 |
from docs import generate_docs
|
2 |
import gradio as gr
|
3 |
|
4 |
+
DESCRIPTION = "GitHub Repo Documentation Generator"
|
5 |
|
6 |
# Define the Gradio Blocks interface.
|
7 |
with gr.Blocks(theme=gr.themes.Origin(primary_hue="red", secondary_hue="pink"), title="GitHub Repo Documentation Generator") as demo:
|
8 |
+
gr.HTML(
|
9 |
+
f"""<h1><span>{DESCRIPTION}</span></h1>""",
|
10 |
+
elem_id="title",
|
11 |
+
)
|
12 |
gr.Markdown(
|
13 |
"Enter a GitHub repository URL or ID (in the format `user/repo`) below. "
|
14 |
"This tool fetches repository details and uses the Groq API to generate documentation."
|
|
|
16 |
with gr.Row():
|
17 |
repo_id_input = gr.Textbox(
|
18 |
label="GitHub Repository URL or ID",
|
|
|
19 |
)
|
20 |
generate_button = gr.Button("Generate Documentation")
|
21 |
|