dipesh2025 commited on
Commit
49ddfe8
·
verified ·
1 Parent(s): 484861b

Update app.py

Browse files

Deleted the unwanted code

Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -6,6 +6,7 @@ import gradio as gr
6
  from huggingface_hub import InferenceClient
7
  import wandb
8
 
 
9
  # non-interactive login
10
  api_key = os.getenv("WANDB_API_KEY")
11
  if api_key:
@@ -15,9 +16,6 @@ else:
15
  # disable wandb entirely if key missing
16
  wandb.init(mode="disabled")
17
 
18
- # 1. Initialize W&B (free tier) for basic logging
19
- wandb.init(project="misra-smart-fixer", entity="YOUR_WANDB_USER")
20
-
21
  # 2. Hugging Face Inference Client (CPU-only, free quota)
22
  HF_TOKEN = os.getenv("HF_API_TOKEN")
23
  client = InferenceClient(model="declare-lab/flan-alpaca-gpt4", token=HF_TOKEN)
 
6
  from huggingface_hub import InferenceClient
7
  import wandb
8
 
9
+ # 1. Initialize W&B (free tier) for basic logging
10
  # non-interactive login
11
  api_key = os.getenv("WANDB_API_KEY")
12
  if api_key:
 
16
  # disable wandb entirely if key missing
17
  wandb.init(mode="disabled")
18
 
 
 
 
19
  # 2. Hugging Face Inference Client (CPU-only, free quota)
20
  HF_TOKEN = os.getenv("HF_API_TOKEN")
21
  client = InferenceClient(model="declare-lab/flan-alpaca-gpt4", token=HF_TOKEN)