Spaces:
Sleeping
Sleeping
JM: try /home/user/app
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
def salut(nom):
|
| 5 |
-
with open("data.txt", "w") as file:
|
| 6 |
p = subprocess.run(["pwd"], capture_output=True)
|
| 7 |
file.write(str(p.stdout))
|
| 8 |
-
print(str(p.stdout))
|
| 9 |
file.write(f"Nom: {nom}\n")
|
| 10 |
|
| 11 |
return "Salut " + nom
|
|
|
|
| 2 |
import subprocess
|
| 3 |
|
| 4 |
def salut(nom):
|
| 5 |
+
with open("/home/user/app/data.txt", "w") as file:
|
| 6 |
p = subprocess.run(["pwd"], capture_output=True)
|
| 7 |
file.write(str(p.stdout))
|
| 8 |
+
print("##### " + str(p.stdout) + " #####")
|
| 9 |
file.write(f"Nom: {nom}\n")
|
| 10 |
|
| 11 |
return "Salut " + nom
|