AlekseyCalvin commited on
Commit
ddd1c1d
·
verified ·
1 Parent(s): 091aa79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -2,9 +2,19 @@ import gradio as gr
2
  import os
3
  import sys
4
 
5
- # Clone the English Poetry Scansion repository and add it to the path
 
6
  os.system("git clone https://github.com/Koziev/EnglishPoetryScansion.git")
7
- sys.path.insert(0, './EnglishPoetryScansion')
 
 
 
 
 
 
 
 
 
8
 
9
  from english_scansion import EnglishScansionTool
10
  from english_scansion.utils import format_scansion_as_html
 
2
  import os
3
  import sys
4
 
5
+ # Clone the repository
6
+ os.system("rm -rf EnglishPoetryScansion") # Clean up in case of a restart
7
  os.system("git clone https://github.com/Koziev/EnglishPoetryScansion.git")
8
+
9
+ # Add the 'english_scansion' subdirectory to Python's path
10
+ sys.path.insert(0, './EnglishPoetryScansion/english_scansion')
11
+
12
+ # Now you can import the module
13
+ #from english_scansion import EnglishScansionTool
14
+
15
+ # Clone the English Poetry Scansion repository and add it to the path
16
+ #os.system("git clone https://github.com/Koziev/EnglishPoetryScansion.git")
17
+ #sys.path.insert(0, './EnglishPoetryScansion')
18
 
19
  from english_scansion import EnglishScansionTool
20
  from english_scansion.utils import format_scansion_as_html