JimmyTsang commited on
Commit
ff82129
·
verified ·
1 Parent(s): b68937f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,8 +1,6 @@
1
  import gradio as gr
2
  import transformers
3
- import torch
4
  import os
5
- from pathlib import Path
6
 
7
  # Ensure your Hugging Face token is set
8
  TOKEN = os.getenv('HF_TOKEN')
@@ -36,5 +34,4 @@ interface = gr.Interface(
36
  description="Input a code problem and its solution to generate test cases using the Meta-Llama-3.1-8B-Instruct model."
37
  )
38
 
39
- if __name__ == "__main__":
40
- interface.launch()
 
1
  import gradio as gr
2
  import transformers
 
3
  import os
 
4
 
5
  # Ensure your Hugging Face token is set
6
  TOKEN = os.getenv('HF_TOKEN')
 
34
  description="Input a code problem and its solution to generate test cases using the Meta-Llama-3.1-8B-Instruct model."
35
  )
36
 
37
+ interface.launch()