Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
import os
|
2 |
import g4f
|
3 |
|
4 |
-
#
|
5 |
-
os.system('pip
|
|
|
|
|
|
|
|
|
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 |
|