Vadym Myroshnyk commited on
Commit
97c6a9b
·
1 Parent(s): e2cfeee
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -1,5 +1,3 @@
1
- import os
2
-
3
  import gradio as gr
4
 
5
  from custom_theme import CustomMinimalTheme
@@ -7,19 +5,6 @@ from service.oral.oral_service import oral_exercise
7
  from service.written.written_service import written_exercise
8
  from utils.instructions import ORAL_QUIZ, TRANSCRIPTION_EXERCISE, QA_DRILL, PRONUNCIATION_PRACTICE
9
 
10
- if os.getenv("HF_SPACE_ID") is None:
11
- from dotenv import load_dotenv
12
-
13
- load_dotenv()
14
-
15
- username = os.getenv("GRADIO_USERNAME")
16
- password = os.getenv("GRADIO_PASSWORD")
17
-
18
- if not username or not password:
19
- raise ValueError("❌ username and password must be set.")
20
-
21
- auth_credentials = [(username, password)]
22
-
23
  with gr.Blocks(theme=CustomMinimalTheme()) as demo:
24
  with gr.Tabs():
25
  with gr.TabItem("🗣️ Oral Quiz"):
 
 
 
1
  import gradio as gr
2
 
3
  from custom_theme import CustomMinimalTheme
 
5
  from service.written.written_service import written_exercise
6
  from utils.instructions import ORAL_QUIZ, TRANSCRIPTION_EXERCISE, QA_DRILL, PRONUNCIATION_PRACTICE
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  with gr.Blocks(theme=CustomMinimalTheme()) as demo:
9
  with gr.Tabs():
10
  with gr.TabItem("🗣️ Oral Quiz"):