MRasheq commited on
Commit
eb28e02
·
1 Parent(s): f1f1c44

Sixth Commit

Browse files
Files changed (1) hide show
  1. app.py +8 -3
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(share=True, server_port=7860, server_name="0.0.0.0", max_upload_size=100)
 
 
 
 
 
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
+ )