wishwakankanamg commited on
Commit
78f8cbf
·
1 Parent(s): c3edd7f

script update

Browse files
Files changed (3) hide show
  1. __pycache__/graph.cpython-310.pyc +0 -0
  2. app.log +1 -0
  3. app.py +3 -5
__pycache__/graph.cpython-310.pyc CHANGED
Binary files a/__pycache__/graph.cpython-310.pyc and b/__pycache__/graph.cpython-310.pyc differ
 
app.log CHANGED
@@ -53426,3 +53426,4 @@ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/er
53426
  2025-06-09 19:34:18:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53427
  2025-06-09 19:35:04:__main__:INFO: Starting the interface
53428
  2025-06-09 19:35:08:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
 
 
53426
  2025-06-09 19:34:18:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53427
  2025-06-09 19:35:04:__main__:INFO: Starting the interface
53428
  2025-06-09 19:35:08:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53429
+ 2025-06-10 03:11:34:__main__:INFO: Starting the interface
app.py CHANGED
@@ -4,6 +4,7 @@ import logging.config
4
  from typing import Any
5
  from uuid import uuid4, UUID
6
  import json
 
7
 
8
  import gradio as gr
9
  from dotenv import load_dotenv
@@ -19,11 +20,8 @@ def update_repo():
19
  try:
20
  subprocess.run(["git", "fetch", "origin"], check=True)
21
  subprocess.run(["git", "reset", "--hard", "origin/main"], check=True)
22
- # Step 2: Install Python dependencies
23
- subprocess.run([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"], "Pip install requirements")
24
-
25
- # Step 3: Run your app (replace with the correct entry point)
26
- subprocess.run([sys.executable, "app.py"], "Starting the app")
27
  except Exception as e:
28
  print(f"Git update failed: {e}")
29
 
 
4
  from typing import Any
5
  from uuid import uuid4, UUID
6
  import json
7
+ import sys
8
 
9
  import gradio as gr
10
  from dotenv import load_dotenv
 
20
  try:
21
  subprocess.run(["git", "fetch", "origin"], check=True)
22
  subprocess.run(["git", "reset", "--hard", "origin/main"], check=True)
23
+ subprocess.run([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"], check=True)
24
+ subprocess.run([sys.executable, "app.py"], check=True)
 
 
 
25
  except Exception as e:
26
  print(f"Git update failed: {e}")
27