Spaces:
Sleeping
Sleeping
Sixth Commit
Browse files
app.py
CHANGED
|
@@ -248,7 +248,7 @@ def train_model(
|
|
| 248 |
|
| 249 |
def create_interface():
|
| 250 |
"""Create Gradio interface with proper file upload handling"""
|
| 251 |
-
with gr.Blocks() as demo:
|
| 252 |
gr.Markdown("# DeepSeek-R1 Model Finetuning Interface")
|
| 253 |
|
| 254 |
with gr.Row():
|
|
@@ -256,7 +256,8 @@ def create_interface():
|
|
| 256 |
file_input = gr.File(
|
| 257 |
label="Upload Training Data (CSV)",
|
| 258 |
type="binary",
|
| 259 |
-
file_types=[".csv"]
|
|
|
|
| 260 |
)
|
| 261 |
|
| 262 |
learning_rate = gr.Slider(
|
|
@@ -312,4 +313,8 @@ if __name__ == "__main__":
|
|
| 312 |
|
| 313 |
# Launch Gradio interface
|
| 314 |
demo = create_interface()
|
| 315 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
|
| 249 |
def create_interface():
|
| 250 |
"""Create Gradio interface with proper file upload handling"""
|
| 251 |
+
with gr.Blocks(analytics_enabled=False) as demo:
|
| 252 |
gr.Markdown("# DeepSeek-R1 Model Finetuning Interface")
|
| 253 |
|
| 254 |
with gr.Row():
|
|
|
|
| 256 |
file_input = gr.File(
|
| 257 |
label="Upload Training Data (CSV)",
|
| 258 |
type="binary",
|
| 259 |
+
file_types=[".csv"],
|
| 260 |
+
file_count="single"
|
| 261 |
)
|
| 262 |
|
| 263 |
learning_rate = gr.Slider(
|
|
|
|
| 313 |
|
| 314 |
# Launch Gradio interface
|
| 315 |
demo = create_interface()
|
| 316 |
+
demo.launch(
|
| 317 |
+
share=True,
|
| 318 |
+
server_port=7860,
|
| 319 |
+
server_name="0.0.0.0"
|
| 320 |
+
)
|