Spaces:
Running
Running
From md to html
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def ui_main():
|
|
118 |
gr.HTML(
|
119 |
"""
|
120 |
<div style="text-align: center;">
|
121 |
-
<img src="assets/logo_header.png" alt="Header Image" />
|
122 |
<h1>SynthGenAI Dataset Generator</h1>
|
123 |
|
124 |
<h2>Overview π§</h2>
|
@@ -127,19 +127,16 @@ def ui_main():
|
|
127 |
<h2>Why SynthGenAI? π€</h2>
|
128 |
<p>Interest in synthetic data generation has surged recently, driven by the growing recognition of data as a critical asset in AI development. Synthetic data generation addresses challenges by allowing us to create diverse and useful datasets using current pre-trained Large Language Models (LLMs).</p>
|
129 |
|
|
|
|
|
|
|
130 |
<a href="https://github.com/Shekswess/synthgenai/tree/main">GitHub Repository</a> | <a href="https://shekswess.github.io/synthgenai/">Documentation</a>
|
131 |
|
132 |
-
|
133 |
</div>
|
134 |
"""
|
135 |
)
|
136 |
|
137 |
-
with gr.Row():
|
138 |
-
hf_token = gr.Textbox(
|
139 |
-
label="Hugging Face Token to Save Dataset",
|
140 |
-
placeholder="Your HF Token",
|
141 |
-
type="password",
|
142 |
-
)
|
143 |
|
144 |
with gr.Row():
|
145 |
llm_model = gr.Textbox(
|
@@ -176,18 +173,23 @@ def ui_main():
|
|
176 |
value="This dataset must be more focused on healthcare implementations of AI, Machine Learning, and Deep Learning.",
|
177 |
)
|
178 |
num_entries = gr.Number(label="Number of Entries To Generated", value=1000)
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
181 |
hf_repo_name = gr.Textbox(
|
182 |
label="Hugging Face Repo Name",
|
183 |
placeholder="organization_or_user_name/dataset_name",
|
184 |
value="Shekswess/synthgenai-dataset",
|
185 |
)
|
186 |
-
llm_env_vars = gr.Textbox(
|
187 |
-
label="LLM Environment Variables",
|
188 |
-
placeholder="Comma-separated environment variables (e.g., KEY1=VALUE1, KEY2=VALUE2)",
|
189 |
-
value="HUGGINGFACE_API_KEY=hf_1234566789912345677889, OPENAI_API_KEY=sk-1234566789912345677889",
|
190 |
-
)
|
191 |
|
192 |
generate_button = gr.Button("Generate Dataset")
|
193 |
output = gr.Textbox(label="Operation Result", value="")
|
|
|
118 |
gr.HTML(
|
119 |
"""
|
120 |
<div style="text-align: center;">
|
121 |
+
<img src="https://raw.githubusercontent.com/Shekswess/synthgenai/refs/heads/main/docs/assets/logo_header.png" alt="Header Image" />
|
122 |
<h1>SynthGenAI Dataset Generator</h1>
|
123 |
|
124 |
<h2>Overview π§</h2>
|
|
|
127 |
<h2>Why SynthGenAI? π€</h2>
|
128 |
<p>Interest in synthetic data generation has surged recently, driven by the growing recognition of data as a critical asset in AI development. Synthetic data generation addresses challenges by allowing us to create diverse and useful datasets using current pre-trained Large Language Models (LLMs).</p>
|
129 |
|
130 |
+
<h2>LLM Providers π€</h2>
|
131 |
+
<p>For more information on which LLMs are allowed and how they can be used, please refer to the <a href="https://shekswess.github.io/synthgenai/llm_providers/">documentation</a>.</p>
|
132 |
+
|
133 |
<a href="https://github.com/Shekswess/synthgenai/tree/main">GitHub Repository</a> | <a href="https://shekswess.github.io/synthgenai/">Documentation</a>
|
134 |
|
135 |
+
|
136 |
</div>
|
137 |
"""
|
138 |
)
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
with gr.Row():
|
142 |
llm_model = gr.Textbox(
|
|
|
173 |
value="This dataset must be more focused on healthcare implementations of AI, Machine Learning, and Deep Learning.",
|
174 |
)
|
175 |
num_entries = gr.Number(label="Number of Entries To Generated", value=1000)
|
176 |
+
llm_env_vars = gr.Textbox(
|
177 |
+
label="LLM Environment Variables",
|
178 |
+
placeholder="Comma-separated environment variables (e.g., KEY1=VALUE1, KEY2=VALUE2)",
|
179 |
+
value="HUGGINGFACE_API_KEY=hf_1234566789912345677889, OPENAI_API_KEY=sk-1234566789912345677889",
|
180 |
+
)
|
181 |
|
182 |
with gr.Row():
|
183 |
+
hf_token = gr.Textbox(
|
184 |
+
label="Hugging Face Token to Save Dataset",
|
185 |
+
placeholder="Your HF Token",
|
186 |
+
type="password",
|
187 |
+
)
|
188 |
hf_repo_name = gr.Textbox(
|
189 |
label="Hugging Face Repo Name",
|
190 |
placeholder="organization_or_user_name/dataset_name",
|
191 |
value="Shekswess/synthgenai-dataset",
|
192 |
)
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
generate_button = gr.Button("Generate Dataset")
|
195 |
output = gr.Textbox(label="Operation Result", value="")
|