Spaces:
Running
Running
UI Improvements
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ def ui_main():
|
|
155 |
|
156 |
with gr.Row():
|
157 |
llm_model = gr.Textbox(
|
158 |
-
label="LLM Model", placeholder="model_provider/model_name", value="huggingface/
|
159 |
)
|
160 |
temperature = gr.Slider(
|
161 |
label="Temperature", minimum=0.0, maximum=1.0, step=0.1, value=0.5
|
@@ -190,21 +190,24 @@ def ui_main():
|
|
190 |
num_entries = gr.Number(label="Number of Entries", value=1000)
|
191 |
|
192 |
with gr.Row():
|
193 |
-
hf_token = gr.
|
194 |
-
label="Hugging Face
|
195 |
-
|
196 |
-
type="password",
|
197 |
-
value="hf_1234566789912345677889",
|
198 |
)
|
199 |
hf_repo_name = gr.Textbox(
|
200 |
label="Hugging Face Repo Name",
|
201 |
placeholder="organization_or_user_name/dataset_name",
|
202 |
-
value="
|
203 |
)
|
204 |
llm_env_vars = gr.Textbox(
|
205 |
label="LLM Environment Variables",
|
206 |
placeholder="Comma-separated environment variables (e.g., KEY1=VALUE1, KEY2=VALUE2)",
|
207 |
-
value="HUGGINGFACE_API_KEY=hf_1234566789912345677889",
|
|
|
|
|
|
|
|
|
|
|
208 |
)
|
209 |
|
210 |
generate_button = gr.Button("Generate Dataset")
|
|
|
155 |
|
156 |
with gr.Row():
|
157 |
llm_model = gr.Textbox(
|
158 |
+
label="LLM Model", placeholder="model_provider/model_name", value="huggingface/mistralai/Mistral-7B-Instruct-v0.3"
|
159 |
)
|
160 |
temperature = gr.Slider(
|
161 |
label="Temperature", minimum=0.0, maximum=1.0, step=0.1, value=0.5
|
|
|
190 |
num_entries = gr.Number(label="Number of Entries", value=1000)
|
191 |
|
192 |
with gr.Row():
|
193 |
+
hf_token = gr.LoginButton(
|
194 |
+
label="Hugging Face Login",
|
195 |
+
value="Login with Hugging Face",
|
|
|
|
|
196 |
)
|
197 |
hf_repo_name = gr.Textbox(
|
198 |
label="Hugging Face Repo Name",
|
199 |
placeholder="organization_or_user_name/dataset_name",
|
200 |
+
value="Shekswess/synthgenai-dataset",
|
201 |
)
|
202 |
llm_env_vars = gr.Textbox(
|
203 |
label="LLM Environment Variables",
|
204 |
placeholder="Comma-separated environment variables (e.g., KEY1=VALUE1, KEY2=VALUE2)",
|
205 |
+
value="HUGGINGFACE_API_KEY=hf_1234566789912345677889, OPENAI_API_KEY=sk-1234566789912345677889",
|
206 |
+
)
|
207 |
+
gr.Markdown(
|
208 |
+
"""
|
209 |
+
For more information on which LLMs are allowed and how they can be used, please refer to the [documentation](https://shekswess.github.io/synthgenai/llm_providers/).
|
210 |
+
"""
|
211 |
)
|
212 |
|
213 |
generate_button = gr.Button("Generate Dataset")
|