Dooratre commited on
Commit
f1d5a90
·
verified ·
1 Parent(s): 51a95a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import os
2
  import g4f
3
 
4
- # Install g4f library if not already installed
5
- os.system('pip install g4f')
 
 
 
 
6
 
7
  prompt = 'give em story about Libya in arabic lang'
8
 
 
1
  import os
2
  import g4f
3
 
4
+ # Check if g4f library is already installed
5
+ if os.system('pip list g4f')!= 0:
6
+ # If not installed, uninstall any existing versions
7
+ os.system('pip uninstall g4f')
8
+ # Install g4f library
9
+ os.system('pip install g4f')
10
 
11
  prompt = 'give em story about Libya in arabic lang'
12