joanhightech commited on
Commit
c6c7115
·
verified ·
1 Parent(s): 0db518d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import subprocess
3
 
4
  def salut(nom):
5
- with open(r"/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) + " #####")
 
2
  import subprocess
3
 
4
  def salut(nom):
5
+ with open(r"/home/user/app/data2.txt", "a") as file:
6
  p = subprocess.run(["pwd"], capture_output=True)
7
  file.write(str(p.stdout))
8
  print("##### " + str(p.stdout) + " #####")