Tonic commited on
Commit
0f4cece
1 Parent(s): 2075768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,8 +28,9 @@ from peft import PeftModel, PeftConfig
28
  import torch
29
  import os
30
 
 
 
31
  dotenv.load_dotenv()
32
-
33
  seamless_client = Client("facebook/seamless_m4t")
34
  HuggingFace_Token = os.getenv("HuggingFace_Token")
35
  hf_token = os.getenv("HuggingFace_Token")
@@ -591,7 +592,6 @@ languages = [
591
  "Zulu"
592
  ]
593
  with gr.Blocks(theme='ParityError/Anime') as iface:
594
- components = {}
595
 
596
  with gr.Row() as language_selection:
597
  input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True)
 
28
  import torch
29
  import os
30
 
31
+ # Global variables to hold component references
32
+ components = {}
33
  dotenv.load_dotenv()
 
34
  seamless_client = Client("facebook/seamless_m4t")
35
  HuggingFace_Token = os.getenv("HuggingFace_Token")
36
  hf_token = os.getenv("HuggingFace_Token")
 
592
  "Zulu"
593
  ]
594
  with gr.Blocks(theme='ParityError/Anime') as iface:
 
595
 
596
  with gr.Row() as language_selection:
597
  input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True)